package/bcusdk: fix build with argp-standalone and NLS

Fix the following build failure with argp-standalone and NLS raised
since commit 5430c8fedd:

configure:16428: /home/buildroot/autobuild/instance-3/output-1/host/bin/sh4-linux-gcc -o conftest -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -Os -g0  -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  conftest.c -largp   >&5
/home/buildroot/autobuild/instance-3/output-1/host/opt/ext-toolchain/bin/../lib/gcc/sh4-buildroot-linux-uclibc/10.3.0/../../../../sh4-buildroot-linux-uclibc/bin/ld: /home/buildroot/autobuild/instance-3/output-1/host/sh4-buildroot-linux-uclibc/sysroot/usr/lib/libargp.a(argp-parse.o): in function `argp_version_parser':
/home/buildroot/autobuild/instance-3/output-1/build/argp-standalone-1.4.1/argp-parse.c:190: undefined reference to `libintl_dgettext'

[...]

checking for library containing argp_parse... no
configure: error: argp_parse not found

Fixes:
 - http://autobuild.buildroot.org/results/9277a064b61f24ad35334b318fe4d899a4c39aa1

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
Fabrice Fontaine 2022-05-08 20:27:27 +02:00 committed by Peter Korsgaard
parent 60a8db376e
commit e15ce8b04d

View File

@ -21,9 +21,12 @@ BCUSDK_CONF_OPTS = \
--without-pth-test \ --without-pth-test \
--with-pth=$(STAGING_DIR)/usr --with-pth=$(STAGING_DIR)/usr
BCUSDK_DEPENDENCIES = \ BCUSDK_DEPENDENCIES = libpthsem \
libpthsem \
$(if $(BR2_PACKAGE_ARGP_STANDALONE),argp-standalone) ifeq ($(BR2_PACKAGE_ARGP_STANDALONE),y)
BCUSDK_DEPENDENCIES += argp-standalone $(TARGET_NLS_DEPENDENCIES)
BCUSDK_CONF_ENV += LIBS=$(TARGET_NLS_LIBS)
endif
define BCUSDK_REMOVE_EXAMPLES define BCUSDK_REMOVE_EXAMPLES
$(RM) -rf $(TARGET_DIR)/usr/share/bcusdk $(RM) -rf $(TARGET_DIR)/usr/share/bcusdk