aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Preud'homme <robotux@celest.fr>2012-10-28 18:24:27 +0100
committerThomas Preud'homme <robotux@celest.fr>2012-10-28 19:55:23 +0100
commit034dce4f049b30dfce398852c57a1a01fbf7590c (patch)
treebacbfdfdf4e3f9f36e1a571eb9f92a75a65a17b8
parentfad68c9163a7c74888f1bd28e3955b78fcb4c6c1 (diff)
downloadtinycc-034dce4f049b30dfce398852c57a1a01fbf7590c.tar.gz
tinycc-034dce4f049b30dfce398852c57a1a01fbf7590c.tar.bz2
Enable arm hardfloat calling convention
Use arm hardfloat calling convention when the system is using it (detected by searching for hardfloat multiarch directory).
-rw-r--r--Makefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 5b1e3bb..8062a3d 100644
--- a/Makefile
+++ b/Makefile
@@ -57,12 +57,12 @@ ifeq ($(ARCH),arm)
NATIVE_DEFINES=-DTCC_TARGET_ARM
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\")
+ifneq (,$(wildcard /lib/arm-linux-gnueabi))
+NATIVE_DEFINES+=-DCONFIG_MULTIARCHDIR=\"arm-linux-gnueabi\"
+else
+NATIVE_DEFINES+=$(if $(wildcard /lib/arm-linux-gnueabihf),-DCONFIG_MULTIARCHDIR=\"arm-linux-gnueabihf\" -DTCC_ARM_HARDFLOAT)
+endif
NATIVE_DEFINES+=$(if $(shell grep -l "^Features.* \(vfp\|iwmmxt\) " /proc/cpuinfo),-DTCC_ARM_VFP)
-# 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