[Buildroot] [PATCH 1/1] package/linknx: fix build with argp-standalone and NLS
Arnout Vandecappelle
arnout at mind.be
Wed Apr 27 19:36:07 UTC 2022
On 26/04/2022 21:19, Fabrice Fontaine wrote:
> Fix the following build failure with argp-standalone and NLS raised
> since commit 5430c8fedd0392e79e0c011825b056fea129980a:
>
> configure:7799: /home/giuliobenetti/autobuild/run/instance-2/output-1/host/bin/xtensa-linux-gcc -o conftest -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -mlongcalls -mauto-litpools -Os -g0 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 conftest.c -largp >&5
> /home/giuliobenetti/autobuild/run/instance-2/output-1/host/opt/ext-toolchain/bin/../lib/gcc/xtensa-buildroot-linux-uclibc/10.3.0/../../../../xtensa-buildroot-linux-uclibc/bin/ld: /home/giuliobenetti/autobuild/run/instance-2/output-1/host/xtensa-buildroot-linux-uclibc/sysroot/usr/lib/libargp.a(argp-parse.o): in function `argp_version_parser':
> /home/giuliobenetti/autobuild/run/instance-2/output-1/build/argp-standalone-1.4.1/argp-parse.c:179: undefined reference to `libintl_dgettext'
>
> [...]
>
> checking for library containing argp_parse... no
> configure: error: argp_parse not found
>
> Fixes:
> - http://autobuild.buildroot.org/results/ce5753193ec4518c75ee0ab9270b577397ca1c02
>
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>
> ---
> package/linknx/linknx.mk | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/package/linknx/linknx.mk b/package/linknx/linknx.mk
> index dbee0742fe..dcfcd5e3f5 100644
> --- a/package/linknx/linknx.mk
> +++ b/package/linknx/linknx.mk
> @@ -23,7 +23,10 @@ LINKNX_DEPENDENCIES = \
> host-pkgconf \
> libpthsem \
> $(if $(BR2_PACKAGE_ARGP_STANDALONE),argp-standalone) \
> - $(if $(BR2_PACKAGE_LIBICONV),libiconv)
> + $(if $(BR2_PACKAGE_LIBICONV),libiconv) \
> + $(TARGET_NLS_DEPENDENCIES)
This is only really needed in case argp-standalone is selected...
But it doesn't really hurt, so applied to master, thanks.
Regards,
Arnout
> +
> +LINKNX_CONF_ENV = LIBS=$(TARGET_NLS_LIBS)
>
> ifeq ($(BR2_PACKAGE_LIBCURL),y)
> LINKNX_CONF_OPTS += --with-libcurl=$(STAGING_DIR)/usr
More information about the buildroot
mailing list