From 4ce7c0dd134619758d3317d8a46ba542be48ac9f Mon Sep 17 00:00:00 2001 From: Fabrice Fontaine Date: Fri, 13 May 2022 23:59:47 +0200 Subject: [PATCH] package/rng-tools: fix build with argp-standalone and NLS Fix the following build failure with argp-standalone and NLS raised since commit 5430c8fedd0392e79e0c011825b056fea129980a: /home/buildroot/autobuild/instance-0/output-1/host/opt/ext-toolchain/bin/../lib/gcc/i686-buildroot-linux-uclibc/9.3.0/../../../../i686-buildroot-linux-uclibc/bin/ld: /home/buildroot/autobuild/instance-0/output-1/host/i686-buildroot-linux-uclibc/sysroot/usr/lib/libargp.a(argp-parse.o): in function `argp_version_parser': /home/buildroot/autobuild/instance-0/output-1/build/argp-standalone-1.4.1/argp-parse.c:181: undefined reference to `libintl_dgettext' [...] configure: error: libargp not found Fixes: - http://autobuild.buildroot.org/results/f7ee27fb4c3253f351deee9867a3b98128f079af Signed-off-by: Fabrice Fontaine Signed-off-by: Arnout Vandecappelle (Essensium/Mind) --- package/rng-tools/rng-tools.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package/rng-tools/rng-tools.mk b/package/rng-tools/rng-tools.mk index 8b195ea875..f736193a23 100644 --- a/package/rng-tools/rng-tools.mk +++ b/package/rng-tools/rng-tools.mk @@ -20,8 +20,8 @@ RNG_TOOLS_CONF_OPTS = --without-pkcs11 # Work around for uClibc or musl toolchains which lack argp_*() # functions. ifeq ($(BR2_PACKAGE_ARGP_STANDALONE),y) -RNG_TOOLS_CONF_ENV += LIBS="-largp" -RNG_TOOLS_DEPENDENCIES += argp-standalone +RNG_TOOLS_CONF_ENV += LIBS="-largp $(TARGET_NLS_LIBS)" +RNG_TOOLS_DEPENDENCIES += argp-standalone $(TARGET_NLS_DEPENDENCIES) endif ifeq ($(BR2_PACKAGE_LIBRTLSDR),y)