[Buildroot] [PATCH v2] gnupg2: fix linking with intl

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Mon Jan 5 15:37:20 UTC 2015


Dear Vicente Olivert Riera,

On Mon, 5 Jan 2015 14:04:42 +0000, Vicente Olivert Riera wrote:

> > This problem was related to static linking, but the
> > BR2_PREFER_STATIC_LIB option has been renamed to BR2_STATIC_LIBS (with
> > a bogus Config.in.legacy handling done by me). So if you took the old
> > config file, BR2_PREFER_STATIC_LIB was discarded, and you were doing a
> > shared library build instead of a static library build, which explains
> > why the problem was not appearing anymore.
> 
> You were right. So now I was able to reproduce the problem, and taking
> into account that it only happens for static builds, I think I could
> change the patch to be like this:
> 
> ifeq ($(BR2_PACKAGE_GETTEXT),y)
> GNUPG2_DEPENDENCIES += gettext
> ifneq ($(BR2_SHARED_LIBS),y)
> GNUPG2_CONF_ENV += LIBS=-lintl
> endif
> endif
> 
> What do you think?

I don't remember the entire context. Do you have a minimal defconfig
that exhibits the problem?

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com



More information about the buildroot mailing list