summaryrefslogtreecommitdiffstats
path: root/package/libnspr
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2013-01-07 09:11:44 +0100
committerPeter Korsgaard <jacmet@sunsite.dk>2013-01-07 09:11:44 +0100
commit13a9fc901f637a1534baa4f08322f3b29ba66b0d (patch)
tree6b2638eca068b6a29ab2c353702a88da2a037cff /package/libnspr
parent2f511fe31229ab9fd2182aa0ebda0ecf205ab12b (diff)
downloadbuildroot-novena-13a9fc901f637a1534baa4f08322f3b29ba66b0d.tar.gz
buildroot-novena-13a9fc901f637a1534baa4f08322f3b29ba66b0d.zip
libnspr: only pass --{enable,disable}-thumb2 on ARM
Fixes http://autobuild.buildroot.net/results/dff3f851ee4c62067a0b231c683383ce8692b8b3 libnspr adds -marm to CFLAGS when passed --disable-thumb2, which is only recognized by ARM cross compilers, so only use when building for ARM. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/libnspr')
-rw-r--r--package/libnspr/libnspr.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/package/libnspr/libnspr.mk b/package/libnspr/libnspr.mk
index d7ea4b312..a5307faf9 100644
--- a/package/libnspr/libnspr.mk
+++ b/package/libnspr/libnspr.mk
@@ -16,11 +16,13 @@ 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_arm),y)
ifeq ($(BR2_cortex_a8)$(BR2_cortex_a9),y)
LIBNSPR_CONF_OPT += --enable-thumb2
else
LIBNSPR_CONF_OPT += --disable-thumb2
endif
+endif
define LIBNSPR_STAGING_LIBNSPR_CONFIG_FIXUP
$(SED) "s,^prefix=.*,prefix=\'$(STAGING_DIR)/usr\',g" \