summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2012-11-10 12:12:05 (GMT)
committer Peter Korsgaard <jacmet@sunsite.dk>2012-11-15 23:15:23 (GMT)
commit27a0cfaa64605eac86a69e6a565eeda556b6b125 (patch)
tree5b125962963a857e9edfad2da133aad86d1dd8f8
parentcea473d8afaf164a83b1bef92965d3d28e11c41f (diff)
downloadbuildroot-27a0cfaa64605eac86a69e6a565eeda556b6b125.tar.gz
buildroot-27a0cfaa64605eac86a69e6a565eeda556b6b125.tar.bz2
libnspr: fix build with ARMv7 toolchains
Fixes the following build failure: http://autobuild.buildroot.org/results/d7323831372050e425a34f5104a46d8cbd6be214/build-end.log Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
-rw-r--r--package/libnspr/libnspr.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/package/libnspr/libnspr.mk b/package/libnspr/libnspr.mk
index 736984d..a9d5812 100644
--- a/package/libnspr/libnspr.mk
+++ b/package/libnspr/libnspr.mk
@@ -16,6 +16,12 @@ 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
+ifeq ($(BR2_cortex_a8)$(BR2_cortex_a9),y)
+LIBNSPR_CONF_OPT += --enable-thumb2
+else
+LIBNSPR_CONF_OPT += --disable-thumb2
+endif
+
define LIBNSPR_INSTALL_STAGING_PC
$(INSTALL) -D -m 0644 $(TOPDIR)/package/libnspr/nspr.pc.in \
$(STAGING_DIR)/usr/lib/pkgconfig/nspr.pc