gcc/arm: disable mudflap for thumb(1)
authorGustavo Zacarias <gustavo@zacarias.com.ar>
Fri, 19 Jul 2013 13:06:31 +0000 (10:06 -0300)
committerPeter Korsgaard <jacmet@sunsite.dk>
Fri, 19 Jul 2013 21:46:06 +0000 (23:46 +0200)
libmudflap doesn't build for a thumb(1) toolchain so disable it.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/gcc/gcc.mk

index c0d821be59ddef6226feba206870dd9b3fdd75d8..85cd7d429a2605741f8cb19134cd869b2e2b0170 100644 (file)
@@ -194,6 +194,11 @@ ifeq ($(BR2_avr32),y)
 HOST_GCC_COMMON_CONF_OPT += --disable-libmudflap
 endif
 
+# ARM Thumb and mudflap aren't friends
+ifeq ($(BR2_ARM_INSTRUCTIONS_THUMB),y)
+HOST_GCC_COMMON_CONF_OPT += --disable-libmudflap
+endif
+
 # Disable mudflap and enable proper double/long double for SPE ABI
 ifeq ($(BR2_powerpc_SPE),y)
 HOST_GCC_COMMON_CONF_OPT += \