summaryrefslogtreecommitdiffstats
path: root/package/libnss
diff options
context:
space:
mode:
authorArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>2012-07-11 00:30:36 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2012-07-17 23:52:22 +0200
commitadbe85c752651bc147bc4deb6419d162b2c6417e (patch)
treefb5a7352fd7121af5714a7eabb980ba8bd3332ad /package/libnss
parent20b2199d30f9c00abd51ae199d0934f4eb70d870 (diff)
downloadbuildroot-novena-adbe85c752651bc147bc4deb6419d162b2c6417e.tar.gz
buildroot-novena-adbe85c752651bc147bc4deb6419d162b2c6417e.zip
libnss: fix 64-bit build
On some architectures (found on x86_64, but probably others too), libnss builds with -m32 unless it is configured for 64-bit build. So force 64-bit build on 64-bit architectures. Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/libnss')
-rw-r--r--package/libnss/libnss.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/package/libnss/libnss.mk b/package/libnss/libnss.mk
index 2e28c753d..f7fd6820c 100644
--- a/package/libnss/libnss.mk
+++ b/package/libnss/libnss.mk
@@ -28,6 +28,10 @@ LIBNSS_BUILD_VARS = MOZILLA_CLIENT=1 \
OS_RELEASE="2.6" \
OS_TEST="$(ARCH)"
+ifeq ($(BR2_ARCH_IS_64),y)
+LIBNSS_BUILD_VARS += USE_64=1
+endif
+
define LIBNSS_BUILD_CMDS
$(MAKE1) -C $(@D)/$(LIBNSS_SUBDIR)/nss build_coreconf build_dbm all \