diff options
author | Arnout Vandecappelle <arnout@mind.be> | 2016-08-25 22:13:36 +0200 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2016-08-26 11:02:17 +0200 |
commit | 129fe1bf6e40bc384dfe11af33db3877761a17c8 (patch) | |
tree | 161ae14e885e4703919eac06c1c5342d50a8bee4 /package/iputils/iputils.mk | |
parent | e2bd1ce7890741a92a6a6353a3832e41d3bc9f70 (diff) | |
download | buildroot-129fe1bf6e40bc384dfe11af33db3877761a17c8.tar.gz buildroot-129fe1bf6e40bc384dfe11af33db3877761a17c8.zip |
package/iputils: link with -lintl
libgcrypt pulls in gpg-error which links with libintl if available.
Since iputils doesn't use libtool, -lintl has to be passed explicitly
for static builds.
Fixes:
http://autobuild.buildroot.net/results/f81/f81eabb37788aa6dcdadf4034889c84bef78b876
http://autobuild.buildroot.net/results/f29/f296e8fba1e79f96d3d119aa4c8207ed4b80694b
http://autobuild.buildroot.net/results/478/478a88cd892a119970cfca717ea7f5517bfc4cea
http://autobuild.buildroot.net/results/920/920d2d1d967691779f79fa54a38fac5adc5a8ee4
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Cc: Matthew Weber <matt@thewebers.ws>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/iputils/iputils.mk')
-rw-r--r-- | package/iputils/iputils.mk | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/package/iputils/iputils.mk b/package/iputils/iputils.mk index d6398f7dcf..42dab08ba9 100644 --- a/package/iputils/iputils.mk +++ b/package/iputils/iputils.mk @@ -36,6 +36,13 @@ endif ifeq ($(BR2_PACKAGE_LIBGCRYPT),y) IPUTILS_MAKE_OPTS += USE_GCRYPT=yes IPUTILS_DEPENDENCIES += libgcrypt +# When gettext is enabled (BR2_PACKAGE_GETTEXT=y), and provides libintl +# (BR2_NEEDS_GETTEXT=y), libgpg-error will link with libintl, and libgpg-error +# is pulled in by libgcrypt. Since iputils doesn't use libtool, we have to link +# with libintl explicitly for static linking, +ifeq ($(BR2_STATIC_LIBS)$(BR2_NEEDS_GETTEXT)$(BR2_PACKAGE_GETTEXT),yyy) +IPUTILS_MAKE_OPTS += ADDLIB='-lintl' +endif else IPUTILS_MAKE_OPTS += USE_GCRYPT=no endif |