[Buildroot] [git commit] package/libvirt: fix NLS build
Thomas Petazzoni
thomas.petazzoni at bootlin.com
Thu Aug 19 20:46:42 UTC 2021
commit: https://git.buildroot.net/buildroot/commit/?id=8831c0db9e81db6f53e44597b7b4e74bff43d0cf
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master
Fix the following build failure raised since the addition of the package
in commit ccfc90e1010e42e6529afae3a5ea8bf7226dabc1:
/tmp/instance-0/output-1/host/opt/ext-toolchain/bin/../lib/gcc/i686-buildroot-linux-uclibc/9.3.0/../../../../i686-buildroot-linux-uclibc/bin/ld: src/util/libvirt_util.a(viralloc.c.o): in function `virInsertElementsN':
viralloc.c:(.text+0x167): undefined reference to `libintl_dgettext'
Fixes:
- http://autobuild.buildroot.net/results/2349c55a4a42f08ca52700c60cda3065b0c4bd88
Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
---
package/libvirt/libvirt.mk | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/package/libvirt/libvirt.mk b/package/libvirt/libvirt.mk
index b36cf3fb60..1b420771f5 100644
--- a/package/libvirt/libvirt.mk
+++ b/package/libvirt/libvirt.mk
@@ -21,7 +21,10 @@ LIBVIRT_DEPENDENCIES = \
libtirpc \
libxml2 \
udev \
- zlib
+ zlib \
+ $(TARGET_NLS_DEPENDENCIES)
+
+LIBVIRT_LDFLAGS = $(TARGET_LDFLAGS) $(TARGET_NLS_LIBS)
LIBVIRT_CONF_ENV += \
CFLAGS="$(TARGET_CFLAGS) `$(PKG_CONFIG_HOST_BINARY) --cflags libtirpc`" \
@@ -49,6 +52,7 @@ LIBVIRT_CONF_OPTS = \
-Dinit_script=$(if $(BR2_INIT_SYSTEMD),systemd,none) \
-Dlogin_shell=disabled \
-Dnetcf=disabled \
+ -Dnls=$(if $(BR2_SYSTEM_ENABLE_NLS),enabled,disabled) \
-Dnumad=disabled \
-Dopenwsman=disabled \
-Dpciaccess=enabled \
More information about the buildroot
mailing list