1 ################################################################################
5 ################################################################################
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
= LGPLv3
+
14 GUILE_LICENSE_FILES
= LICENSE COPYING COPYING.LESSER
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
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.
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
31 ifeq ($(BR2_STATIC_LIBS
),y
)
32 GUILE_CFLAGS
+= -DGC_NO_DLOPEN
35 # Triggers assembler error with -Os
36 ifeq ($(BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_ARM
)$(BR2_OPTIMIZE_S
),yy
)
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
47 GUILE_CONF_OPTS
+= --without-libreadline-prefix
50 GUILE_CONF_ENV
+= GUILE_FOR_BUILD
=$(HOST_DIR
)/usr
/bin
/guile \
51 CFLAGS
="$(TARGET_CFLAGS) $(GUILE_CFLAGS)"
54 --with-libltdl-prefix
=$(STAGING_DIR
)/usr
/lib \
55 --with-libgmp-prefix
=$(STAGING_DIR
)/usr
/lib \
56 --with-libunistring-prefix
=$(STAGING_DIR
)/usr
/lib
58 $(eval
$(autotools-package
))
59 $(eval
$(host-autotools-package
))