Explorar o código

jamvm: force ARM mode when building to avoid thumb2 build problems

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Peter Korsgaard %!s(int64=12) %!d(string=hai) anos
pai
achega
ac3ee237d9
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      package/jamvm/jamvm.mk

+ 6 - 0
package/jamvm/jamvm.mk

@@ -8,4 +8,10 @@ JAMVM_CONF_OPT = \
 	--disable-shared \
 	--without-pic
 
+# jamvm has ARM assembly code that cannot be compiled in Thumb2 mode,
+# so we must force traditional ARM mode.
+ifeq ($(BR2_arm),y)
+JAMVM_CONF_ENV = CFLAGS="$(TARGET_CFLAGS) -marm"
+endif
+
 $(eval $(autotools-package))