summaryrefslogtreecommitdiffstats
path: root/package/gmp
diff options
context:
space:
mode:
authorGustavo Zacarias <gustavo@zacarias.com.ar>2011-10-05 17:23:38 -0300
committerPeter Korsgaard <jacmet@sunsite.dk>2011-11-08 23:46:51 +0100
commitd7139cd936e0cb793dc552ddf484aacac1b8dd45 (patch)
treed0a70086a8698b4833099b52d93033dbcf8d5f53 /package/gmp
parent69f34bafa8dc8af6d66e86f8a965c423552e1eb3 (diff)
downloadbuildroot-novena-d7139cd936e0cb793dc552ddf484aacac1b8dd45.tar.gz
buildroot-novena-d7139cd936e0cb793dc552ddf484aacac1b8dd45.zip
gmp: work around ARM thumb build breakage
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/gmp')
-rw-r--r--package/gmp/gmp.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/package/gmp/gmp.mk b/package/gmp/gmp.mk
index 5eb6ecc6e..2222465c8 100644
--- a/package/gmp/gmp.mk
+++ b/package/gmp/gmp.mk
@@ -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))