From 034dce4f049b30dfce398852c57a1a01fbf7590c Mon Sep 17 00:00:00 2001 From: Thomas Preud'homme Date: Sun, 28 Oct 2012 18:24:27 +0100 Subject: [PATCH] Enable arm hardfloat calling convention Use arm hardfloat calling convention when the system is using it (detected by searching for hardfloat multiarch directory). --- Makefile | 10 +++++----- 1 file 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