summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2012-12-05 18:17:56 (GMT)
committer Peter Korsgaard <jacmet@sunsite.dk>2012-12-05 18:17:56 (GMT)
commitac3ee237d96731b869eeca435e1b8351aacd245b (patch)
tree065562bcaf4513e2be6018567af1f693a4edf799
parentfa0cea21cdee6c5ac46fba3cceb989419083a432 (diff)
downloadbuildroot-ac3ee237d96731b869eeca435e1b8351aacd245b.tar.gz
buildroot-ac3ee237d96731b869eeca435e1b8351aacd245b.tar.bz2
jamvm: force ARM mode when building to avoid thumb2 build problems
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
-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 f0765d7..3f05361 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))