[Buildroot] [PATCH] package/gauche: fix 'dlfcn.h: No such file' on autobuild

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Tue Nov 17 15:35:37 UTC 2015


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



More information about the buildroot mailing list