diff options
author | Gustavo Zacarias <gustavo@zacarias.com.ar> | 2015-10-14 18:42:36 -0300 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2015-10-14 23:49:50 +0200 |
commit | f8ce3d329778f39f097d959ac631cfff7d05bf49 (patch) | |
tree | 8a0b593e17fd68c109e82c0285f5bd6eb74c98c6 | |
parent | b1dcb1c2468134ddf0e3cfc81c40874bf9fc561e (diff) | |
download | buildroot-f8ce3d329778f39f097d959ac631cfff7d05bf49.tar.gz buildroot-f8ce3d329778f39f097d959ac631cfff7d05bf49.zip |
guile: handle readline support explicitly
Otherwise the host readline (+ncurses) development files can poison the
build causing breakage. Fixes:
http://autobuild.buildroot.net/results/d0a/d0a8ad9d3f19592e06df36408d6af745f7908165/
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r-- | package/guile/guile.mk | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/package/guile/guile.mk b/package/guile/guile.mk index 2bd719887c..0e0b1a34c1 100644 --- a/package/guile/guile.mk +++ b/package/guile/guile.mk @@ -32,6 +32,16 @@ ifeq ($(BR2_STATIC_LIBS),y) GUILE_CFLAGS += -DGC_NO_DLOPEN endif +# It can use readline, but on the condition that it was build against +# ncurses. If both aren't present disable readline support since the +# host readline/ncurses support can poison the build. +ifeq ($(BR2_PACKAGE_NCURSES)$(BR2_PACKAGE_READLINE),yy) +GUILE_CONF_OPTS += --with-libreadline-prefix=$(STAGING_DIR)/usr +GUILE_DEPENDENCIES += readline +else +GUILE_CONF_OPTS += --without-libreadline-prefix +endif + GUILE_CONF_ENV += GUILE_FOR_BUILD=$(HOST_DIR)/usr/bin/guile \ CFLAGS="$(TARGET_CFLAGS) $(GUILE_CFLAGS)" |