• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/guile/guile.mk
Arnout VandecappelleArnout Vandecappelle committed 0f9c0bf3d5c05 Jul 2017
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
1
################################################################################
2
#
3
# guile
4
#
5
################################################################################
6
​
7
GUILE_VERSION = 2.0.14
8
GUILE_SOURCE = guile-$(GUILE_VERSION).tar.xz
9
GUILE_SITE = $(BR2_GNU_MIRROR)/guile
10
GUILE_INSTALL_STAGING = YES
11
# For 0002-calculate-csqrt_manually.patch
12
GUILE_AUTORECONF = YES
13
GUILE_LICENSE = LGPL-3.0+
14
GUILE_LICENSE_FILES = LICENSE COPYING COPYING.LESSER
15
​
16
# libtool dependency is needed because guile uses libltdl
17
GUILE_DEPENDENCIES = host-guile libunistring libffi gmp bdwgc host-pkgconf libtool
18
HOST_GUILE_DEPENDENCIES = host-libunistring host-libffi host-gmp host-bdwgc host-flex host-pkgconf host-gettext
19
​
20
# The HAVE_GC* CFLAGS specify that we will use internal callbacks
21
# instead of the ones provided by
22
# bdwgc. Eg. HAVE_GC_SET_FINALIZER_NOTIFIER specifies that we won't
23
# use bdwgc's GC_finalizer_notifier callback.  Trying to use these
24
# specific bdwgc's callbacks breaks guile's building.
25
GUILE_CFLAGS = \
26
    -DHAVE_GC_SET_FINALIZER_NOTIFIER \
27
    -DHAVE_GC_GET_HEAP_USAGE_SAFE \
28
    -DHAVE_GC_GET_FREE_SPACE_DIVISOR \
29
    -DHAVE_GC_SET_FINALIZE_ON_DEMAND
30
​
31
ifeq ($(BR2_STATIC_LIBS),y)
32
GUILE_CFLAGS += -DGC_NO_DLOPEN
33
endif
34
​
35
# Triggers assembler error with -Os
36
ifeq ($(BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_ARM)$(BR2_OPTIMIZE_S),yy)
37
GUILE_CFLAGS += -O2
38
endif
39
​
40
# It can use readline, but on the condition that it was build against
41
# ncurses. If both aren't present disable readline support since the
42
# host readline/ncurses support can poison the build.
43
ifeq ($(BR2_PACKAGE_NCURSES)$(BR2_PACKAGE_READLINE),yy)
44
GUILE_CONF_OPTS += --with-libreadline-prefix=$(STAGING_DIR)/usr
45
GUILE_DEPENDENCIES += readline
46
else
47
GUILE_CONF_OPTS += --without-libreadline-prefix
48
endif
49
​
50
GUILE_CONF_ENV += GUILE_FOR_BUILD=$(HOST_DIR)/bin/guile \
51
    CFLAGS="$(TARGET_CFLAGS) $(GUILE_CFLAGS)"
52
​
53
GUILE_CONF_OPTS += \
54
    --with-libltdl-prefix=$(STAGING_DIR)/usr/lib \
55
    --with-libgmp-prefix=$(STAGING_DIR)/usr/lib \
56
    --with-libunistring-prefix=$(STAGING_DIR)/usr/lib
57
​
58
$(eval $(autotools-package))
59
$(eval $(host-autotools-package))
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.