[Buildroot] [PATCH] package/gauche: fix 'dlfcn.h: No such file' on autobuild
Hiroshi Kawashima
kei-k at ca2.so-net.ne.jp
Tue Nov 17 15:28:31 UTC 2015
Ported from bdwgc package.
When build with BR2_STATIC_LIBS environment, prevent to use dlopen().
Fix:
http://autobuild.buildroot.org/results/da5/da5b9605552d4914c5e6f0d890367b92536419c1
Signed-off-by: Hiroshi Kawashima <kei-k at ca2.so-net.ne.jp>
---
package/gauche/gauche.mk | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/package/gauche/gauche.mk b/package/gauche/gauche.mk
index b887c6a..400c2a3 100644
--- a/package/gauche/gauche.mk
+++ b/package/gauche/gauche.mk
@@ -20,13 +20,18 @@ else
GAUCHE_CONF_OPTS += --without-zlib
endif
+GAUCHE_CFLAGS = $(TARGET_CFLAGS)
+ifeq ($(BR2_STATIC_LIBS),y)
+GAUCHE_CFLAGS += -DGC_NO_DLOPEN
+endif
+
# Detection of c99 support in configure fails without WCHAR. To enable
# automatic detection of c99 support by configure, we need to enable
# WCHAR in toolchain. But actually we do not need WCHAR at gauche
# runtime. So reuesting WCHAR in toolchain just for automatic detection
# will be overkill. To solve this, explicitly -std=gnu99 is specified
# here.
-GAUCHE_CONF_ENV = CFLAGS="$(TARGET_CFLAGS) -std=gnu99"
+GAUCHE_CONF_ENV = CFLAGS="$(GAUCHE_CFLAGS) -std=gnu99"
$(eval $(host-autotools-package))
$(eval $(autotools-package))
============================================================
Hiroshi Kawashima
More information about the buildroot
mailing list