diff options
| author | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2015-08-07 12:20:39 +0200 |
|---|---|---|
| committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2015-08-07 12:20:39 +0200 |
| commit | 49593aba5a56c9c297c31c12fc4dc3de5679e7b1 (patch) | |
| tree | fcbf48299541df8d24342ff22044b37672bdaed0 /package/guile | |
| parent | b6289cb1db9a75dfe317b4d84fb246e4cfa8d4b9 (diff) | |
| download | buildroot-49593aba5a56c9c297c31c12fc4dc3de5679e7b1.tar.gz buildroot-49593aba5a56c9c297c31c12fc4dc3de5679e7b1.zip | |
guile: fix static-only build
guile uses bdwgc, which is already compiled with GC_NO_DLOPEN in
static-only scenarios. However, the bdwgc headers continue to include
<dlfcn.h> if used with GC_NO_DLOPEN undefined.
Therefore, to make guile link properly in a static-only scenario, we
have to build it with GC_NO_DLOPEN defined.
Fixes:
http://autobuild.buildroot.net/results/1bf/1bf73dd4c28d6607e8c24d3abf259b8032712a02/
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/guile')
| -rw-r--r-- | package/guile/guile.mk | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/package/guile/guile.mk b/package/guile/guile.mk index fed79a64f0..2bd719887c 100644 --- a/package/guile/guile.mk +++ b/package/guile/guile.mk @@ -28,6 +28,10 @@ GUILE_CFLAGS = \ -DHAVE_GC_GET_FREE_SPACE_DIVISOR \ -DHAVE_GC_SET_FINALIZE_ON_DEMAND +ifeq ($(BR2_STATIC_LIBS),y) +GUILE_CFLAGS += -DGC_NO_DLOPEN +endif + GUILE_CONF_ENV += GUILE_FOR_BUILD=$(HOST_DIR)/usr/bin/guile \ CFLAGS="$(TARGET_CFLAGS) $(GUILE_CFLAGS)" |

