gmp: work around ARM thumb build breakage
authorGustavo Zacarias <gustavo@zacarias.com.ar>
Wed, 5 Oct 2011 20:23:38 +0000 (17:23 -0300)
committerPeter Korsgaard <jacmet@sunsite.dk>
Tue, 8 Nov 2011 22:46:51 +0000 (23:46 +0100)
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/gmp/gmp.mk

index 5eb6ecc6ee0ee715f4eef7339515c1a9a89221ad..2222465c8f5678f0b00eafa924206d0efbeaae8f 100644 (file)
@@ -9,5 +9,10 @@ GMP_SITE = $(BR2_GNU_MIRROR)/gmp
 GMP_SOURCE = gmp-$(GMP_VERSION).tar.bz2
 GMP_INSTALL_STAGING = YES
 
+# Bad ARM assembly breaks on pure thumb
+ifeq ($(ARCH),arm)
+GMP_MAKE_OPT += CFLAGS="$(TARGET_CFLAGS) -marm"
+endif
+
 $(eval $(call AUTOTARGETS))
 $(eval $(call AUTOTARGETS,host))