From ac3ee237d96731b869eeca435e1b8351aacd245b Mon Sep 17 00:00:00 2001 From: Peter Korsgaard Date: Wed, 5 Dec 2012 10:17:56 -0800 Subject: [PATCH] jamvm: force ARM mode when building to avoid thumb2 build problems Signed-off-by: Peter Korsgaard --- package/jamvm/jamvm.mk | 6 ++++++ 1 file changed, 6 insertions(+) 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)) -- 2.30.2