libnspr: fix build with ARMv7 toolchains
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 10 Nov 2012 12:12:05 +0000 (12:12 +0000)
committerPeter Korsgaard <jacmet@sunsite.dk>
Thu, 15 Nov 2012 23:15:23 +0000 (00:15 +0100)
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>
package/libnspr/libnspr.mk

index 736984d096dd6800b687e95b929b589b00b25333..a9d5812f21e6b240a18f4652e5743c933b71330e 100644 (file)
@@ -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