summaryrefslogtreecommitdiffstats
path: root/package/jamvm
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2012-12-05 10:17:56 -0800
committerPeter Korsgaard <jacmet@sunsite.dk>2012-12-05 10:17:56 -0800
commitac3ee237d96731b869eeca435e1b8351aacd245b (patch)
tree065562bcaf4513e2be6018567af1f693a4edf799 /package/jamvm
parentfa0cea21cdee6c5ac46fba3cceb989419083a432 (diff)
downloadbuildroot-novena-ac3ee237d96731b869eeca435e1b8351aacd245b.tar.gz
buildroot-novena-ac3ee237d96731b869eeca435e1b8351aacd245b.zip
jamvm: force ARM mode when building to avoid thumb2 build problems
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/jamvm')
-rw-r--r--package/jamvm/jamvm.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/package/jamvm/jamvm.mk b/package/jamvm/jamvm.mk
index f0765d7cd..3f0536136 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))