aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Preud'homme <robotux@celest.fr>2012-07-27 17:19:39 +0800
committerThomas Preud'homme <robotux@celest.fr>2012-07-29 23:46:45 +0800
commitc9a2fbaad109a30d62723486dcbe014eb429a002 (patch)
treecac0e41c6587cf33c902800ded9fd7005aef0e2d
parentd1694f7d7e6d96f64d1330c9b43491b613272b1e (diff)
downloadtinycc-c9a2fbaad109a30d62723486dcbe014eb429a002.tar.gz
tinycc-c9a2fbaad109a30d62723486dcbe014eb429a002.tar.bz2
Add multiarch directory for arm hardfloat variant
Arm hardfloat variant uses a different ABI than arm and uses thus a different multiarch directory for headers and libraries. This commit detect whether the system uses the hardfloat variant and configure the multiarch directory accordingly.
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index cdaad28..5b1e3bb 100644
--- a/Makefile
+++ b/Makefile
@@ -59,8 +59,10 @@ NATIVE_DEFINES+=-DWITHOUT_LIBTCC
NATIVE_DEFINES+=$(if $(wildcard /lib/ld-linux.so.3),-DTCC_ARM_EABI)
NATIVE_DEFINES+=$(if $(wildcard /lib/arm-linux-gnueabi),-DCONFIG_MULTIARCHDIR=\"arm-linux-gnueabi\")
NATIVE_DEFINES+=$(if $(shell grep -l "^Features.* \(vfp\|iwmmxt\) " /proc/cpuinfo),-DTCC_ARM_VFP)
-# To use ARM hardfloat calling convension
+# To use ARM hardfloat calling convension, uncomment the next 2 lines
+# Beware: only -run and -c work so far, linking is not yet supported
#NATIVE_DEFINES+=-DTCC_ARM_HARDFLOAT
+#NATIVE_DEFINES+=$(if $(wildcard /lib/arm-linux-gnueabihf),-DCONFIG_MULTIARCHDIR=\"arm-linux-gnueabihf\")
endif
ifdef CONFIG_WIN32