package/polkit: fix build with NLS
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Tue, 17 Mar 2020 21:03:53 +0000 (22:03 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Wed, 18 Mar 2020 22:19:13 +0000 (23:19 +0100)
Fixes:
 - http://autobuild.buildroot.org/results/258b734e14f8f31355eba1ddb734213bc3f29591

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

index efd788a05c2d00bb0586b6427fef46dd92c70464..4e7cda943cb060efd371f9a4f2864f537196682b 100644 (file)
@@ -11,10 +11,13 @@ POLKIT_LICENSE_FILES = COPYING
 
 POLKIT_INSTALL_STAGING = YES
 
-POLKIT_DEPENDENCIES = libglib2 host-intltool expat spidermonkey
+POLKIT_DEPENDENCIES = \
+       libglib2 host-intltool expat spidermonkey $(TARGET_NLS_DEPENDENCIES)
 
 # spidermonkey needs C++11
-POLKIT_CONF_ENV = CXXFLAGS="$(TARGET_CXXFLAGS) -std=c++11"
+POLKIT_CONF_ENV = \
+       CXXFLAGS="$(TARGET_CXXFLAGS) -std=c++11" \
+       LIBS=$(TARGET_NLS_LIBS)
 
 POLKIT_CONF_OPTS = \
        --with-os-type=unknown \