package/policycoreutils: fix build with NLS
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Mon, 14 Oct 2019 17:20:29 +0000 (19:20 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Mon, 14 Oct 2019 19:40:30 +0000 (21:40 +0200)
Fixes:
 - http://autobuild.buildroot.org/results/43b5580fa9f26eac71afa9f3cca413f2791c054d

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/policycoreutils/policycoreutils.mk

index 9114b152eb61f82d2d3fb70d50fd4482da2fe451..6cd5a019c500e181ad07c581ef31074a1ceb6b54 100644 (file)
@@ -9,7 +9,8 @@ POLICYCOREUTILS_SITE = https://github.com/SELinuxProject/selinux/releases/downlo
 POLICYCOREUTILS_LICENSE = GPL-2.0
 POLICYCOREUTILS_LICENSE_FILES = COPYING
 
-POLICYCOREUTILS_DEPENDENCIES = libsemanage libcap-ng
+POLICYCOREUTILS_DEPENDENCIES = libsemanage libcap-ng $(TARGET_NLS_DEPENDENCIES)
+POLICYCOREUTILS_MAKE_OPTS = LDLIBS=$(TARGET_NLS_LIBS)
 
 ifeq ($(BR2_PACKAGE_LINUX_PAM),y)
 POLICYCOREUTILS_DEPENDENCIES += linux-pam