Enable arm hardfloat calling convention

Use arm hardfloat calling convention when the system is using it
(detected by searching for hardfloat multiarch directory).
master
Thomas Preud'homme 2012-10-28 18:24:27 +01:00
parent fad68c9163
commit 034dce4f04
1 changed files with 5 additions and 5 deletions

View File

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