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

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
This commit is contained in:
Peter Korsgaard 2012-12-05 10:17:56 -08:00
parent fa0cea21cd
commit ac3ee237d9

View File

@ -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))