From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yann E. MORIN Date: Mon, 21 Sep 2015 19:25:51 +0200 Subject: [Buildroot] [v2 1/1] make: disable guile support when static linking enabled In-Reply-To: References: <1442783430-26199-1-git-send-email-ryanbarnett3@gmail.com> <20150920215134.GA1655@free.fr> Message-ID: <20150921172551.GA3570@free.fr> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Ryan, All, On 2015-09-20 17:00 -0500, Ryan Barnett spake thusly: > On Sun, Sep 20, 2015 at 4:51 PM, Yann E. MORIN wrote: > > Ryan, All, > > > > On 2015-09-20 16:10 -0500, Ryan Barnett spake thusly: > >> When building in a static only configuration with guile package > >> enabled, the following error happens: > >> > >> gc_pthread_redirects.h:37:22: fatal error: dlfcn.h: No such file or > >> directory > >> # include > >> > >> The file gc_pthread_redirects.h comes from bdwgc, which gets built > >> before make in the autobuild test case you're pointing to. This header > > > > Maby replace "the autobuild test case you're pointing to" with "the > > autobuild test case referenced below". > > > >> file is known to incorrectly include , unless GC_NO_DLOPEN is > >> specified. > >> > >> IF GC_NO_DLOPEN is defined, another issue arises due to libguile and > >> libintl both defining locale_charset. > >> > >> Thus disable guile support for make. > >> > >> Fixes: > >> http://autobuild.buildroot.net/results/814/8143ae0afac139845e5016058d85c800dc8527ad > >> > >> Signed-off-by: Ryan Barnett > >> --- > >> package/make/make.mk | 9 ++------- > >> 1 file changed, 2 insertions(+), 7 deletions(-) > >> > >> diff --git a/package/make/make.mk b/package/make/make.mk > >> index ebfa2f0..20702dc 100644 > >> --- a/package/make/make.mk > >> +++ b/package/make/make.mk > >> @@ -11,16 +11,11 @@ MAKE_DEPENDENCIES = $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext) > >> MAKE_LICENSE = GPLv3+ > >> MAKE_LICENSE_FILES = COPYING > >> > >> +MAKE_CONF_OPTS = --without-guile > >> + > >> # Disable the 'load' operation for static builds since it needs dlopen > >> ifeq ($(BR2_STATIC_LIBS),y) > >> MAKE_CONF_OPTS += --disable-load > >> endif > >> > >> -ifeq ($(BR2_PACKAGE_GUILE),y) > >> -MAKE_DEPENDENCIES += guile > >> -MAKE_CONF_OPTS += --with-guile > >> -else > >> -MAKE_CONF_OPTS += --without-guile > >> -endif > > > > Hm.. not sure we want to unconditionally disable guile support in make. > > > > What about: > > > > ifeq ($(BR2_STATIC_LIBS):$(BR2_PACKAGE_GUILE),:y) > > MAKE_DEPENDENCIES += guile > > MAKE_CONF_OPTS += --with-guile > > else > > MAKE_CONF_OPTS += --without-guile > > endif > > I had proposed that but Thomas had said just to disable it all > together and Baruch - who originally submitted the package said that > he agreed. See http://lists.busybox.net/pipermail/buildroot/2015-September/139980.html OK, if Thomas said so! ;-) > I am going to keep with disabling it unconditionally. OK. Regards, Yann E. MORIN. -- .-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------'