summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>2012-07-10 22:25:45 (GMT)
committer Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2012-07-17 21:49:10 (GMT)
commit20b2199d30f9c00abd51ae199d0934f4eb70d870 (patch)
treeb1274b62d4ac50d426a472f34c392c66bb1849e2
parent7d8434630b397dab7da3739c9f737fc2fbf0e97d (diff)
downloadbuildroot-20b2199d30f9c00abd51ae199d0934f4eb70d870.tar.gz
buildroot-20b2199d30f9c00abd51ae199d0934f4eb70d870.tar.bz2
libnspr: fix 64-bit build
On some architectures (found on x86_64, but probably others too), libnspr 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>
-rw-r--r--package/libnspr/libnspr.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/package/libnspr/libnspr.mk b/package/libnspr/libnspr.mk
index c2cc996..689caa4 100644
--- a/package/libnspr/libnspr.mk
+++ b/package/libnspr/libnspr.mk
@@ -12,6 +12,8 @@ LIBNSPR_INSTALL_STAGING = YES
LIBNSPR_CONF_ENV = HOST_CFLAGS="-g -O2" \
HOST_LDFLAGS="-lc"
# NSPR mixes up --build and --host
-LIBNSPR_CONF_OPT = --host=$(GNU_HOST_NAME)
+LIBNSPR_CONF_OPT = --host=$(GNU_HOST_NAME)
+LIBNSPR_CONF_OPT += --$(if $(BR2_ARCH_IS_64),en,dis)able-64bit
+LIBNSPR_CONF_OPT += --$(if $(BR2_INET_IPV6),en,dis)able-ipv6
$(eval $(autotools-package))