From: Peter Korsgaard Date: Wed, 5 Dec 2012 18:17:56 +0000 (-0800) Subject: jamvm: force ARM mode when building to avoid thumb2 build problems X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ac3ee237d96731b869eeca435e1b8351aacd245b;p=buildroot.git jamvm: force ARM mode when building to avoid thumb2 build problems Signed-off-by: Peter Korsgaard --- diff --git a/package/jamvm/jamvm.mk b/package/jamvm/jamvm.mk index f0765d7cd0..3f05361362 100644 --- a/package/jamvm/jamvm.mk +++ b/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))