Patchwork libnspr: fix build with ARMv7 toolchains

login
register
mail settings
Submitter Thomas Petazzoni
Date Nov. 10, 2012, 10:12 p.m.
Message ID <1352585525-25600-1-git-send-email-thomas.petazzoni@free-electrons.com>
Download mbox | patch
Permalink /patch/198220/
State Accepted
Commit 27a0cfaa64605eac86a69e6a565eeda556b6b125
Headers show

Comments

Thomas Petazzoni - Nov. 10, 2012, 10:12 p.m.
Fixes the following build failure:

  http://autobuild.buildroot.org/results/d7323831372050e425a34f5104a46d8cbd6be214/build-end.log

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
 package/libnspr/libnspr.mk |    6 ++++++
 1 file changed, 6 insertions(+)
Peter Korsgaard - Nov. 15, 2012, 11:28 p.m.
>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@free-electrons.com> writes:

 Thomas> Fixes the following build failure:
 Thomas>   http://autobuild.buildroot.org/results/d7323831372050e425a34f5104a46d8cbd6be214/build-end.log

Committed, thanks.

Patch

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