* [Buildroot] [PATCH] package/gauche: fix 'dlfcn.h: No such file' on autobuild
@ 2015-11-17 15:28 Hiroshi Kawashima
2015-11-17 15:35 ` Thomas Petazzoni
0 siblings, 1 reply; 3+ messages in thread
From: Hiroshi Kawashima @ 2015-11-17 15:28 UTC (permalink / raw)
To: buildroot
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@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
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH] package/gauche: fix 'dlfcn.h: No such file' on autobuild
2015-11-17 15:28 [Buildroot] [PATCH] package/gauche: fix 'dlfcn.h: No such file' on autobuild Hiroshi Kawashima
@ 2015-11-17 15:35 ` Thomas Petazzoni
2015-11-17 15:47 ` Hiroshi Kawashima
0 siblings, 1 reply; 3+ messages in thread
From: Thomas Petazzoni @ 2015-11-17 15:35 UTC (permalink / raw)
To: buildroot
Dear Hiroshi Kawashima,
On Wed, 18 Nov 2015 00:28:31 +0900, Hiroshi Kawashima wrote:
> 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"
If you do this, then add -std=gnu99 in GAUCHE_CFLAGS. Like:
GAUCHE_CFLAGS = $(TARGET_CFLAGS)
# 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_CFLAGS += -std=gnu99
ifeq ($(BR2_STATIC_LIBS),y)
GAUCHE_CFLAGS += -DGC_NO_DLOPEN
endif
GAUCHE_CONF_ENV = CFLAGS="$(GAUCHE_CFLAGS)"
Best regards,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH] package/gauche: fix 'dlfcn.h: No such file' on autobuild
2015-11-17 15:35 ` Thomas Petazzoni
@ 2015-11-17 15:47 ` Hiroshi Kawashima
0 siblings, 0 replies; 3+ messages in thread
From: Hiroshi Kawashima @ 2015-11-17 15:47 UTC (permalink / raw)
To: buildroot
Dear Thomas.
Thank you for your comment.
I will send v2 patch next.
Thomas Petazzoni writes:
> Dear Hiroshi Kawashima,
>
> On Wed, 18 Nov 2015 00:28:31 +0900, Hiroshi Kawashima wrote:
>
> > 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"
>
> If you do this, then add -std=gnu99 in GAUCHE_CFLAGS. Like:
>
> GAUCHE_CFLAGS = $(TARGET_CFLAGS)
>
> # 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_CFLAGS += -std=gnu99
>
> ifeq ($(BR2_STATIC_LIBS),y)
> GAUCHE_CFLAGS += -DGC_NO_DLOPEN
> endif
>
> GAUCHE_CONF_ENV = CFLAGS="$(GAUCHE_CFLAGS)"
>
> Best regards,
>
> Thomas
============================================================
Hiroshi Kawashima
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-11-17 15:47 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-17 15:28 [Buildroot] [PATCH] package/gauche: fix 'dlfcn.h: No such file' on autobuild Hiroshi Kawashima
2015-11-17 15:35 ` Thomas Petazzoni
2015-11-17 15:47 ` Hiroshi Kawashima
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox