diff options
| author | Thomas Preud'homme <robotux@celest.fr> | 2012-11-19 12:04:25 +0100 |
|---|---|---|
| committer | Thomas Preud'homme <robotux@celest.fr> | 2012-11-20 11:36:13 +0100 |
| commit | 15a315f4a5af2cb644178f8d43438df47fa44fd3 (patch) | |
| tree | e53f710b0b633b3bc72c6c4055ad35cda89df05d /Makefile | |
| parent | e2212738d40877a8a54e5728999acb7f035f66f3 (diff) | |
| download | tinycc-15a315f4a5af2cb644178f8d43438df47fa44fd3.tar.gz tinycc-15a315f4a5af2cb644178f8d43438df47fa44fd3.tar.bz2 | |
Define TCC_ARM_EABI if using hardfloat ABI
TCC_ARM_EABI should be defined when compiling with hardfloat calling
convention. This commit rework the Makefile to distinguish between
calling convention and multiarch and define TCC_ARM_EABI when hardfloat
calling convention is used. The result is to first guess the calling
convention and then add the multiarch triplet if necessary.
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -69,11 +69,14 @@ endif ifeq ($(ARCH),arm) NATIVE_DEFINES=-DTCC_TARGET_ARM NATIVE_DEFINES+=-DWITHOUT_LIBTCC -NATIVE_DEFINES+=$(if $(wildcard /lib/ld-linux.so.3),-DTCC_ARM_EABI) -ifneq (,$(wildcard /lib/arm-linux-gnueabi)) -NATIVE_DEFINES+=-DCONFIG_MULTIARCHDIR=\"arm-linux-gnueabi\" +ifneq (,$(wildcard /lib/ld-linux.so.3)) +NATIVE_DEFINES+=-DTCC_ARM_EABI +NATIVE_DEFINES+=$(if $(wildcard /lib/arm-linux-gnueabi), -DCONFIG_MULTIARCHDIR=\"arm-linux-gnueabi\") else -NATIVE_DEFINES+=$(if $(wildcard /lib/arm-linux-gnueabihf),-DCONFIG_MULTIARCHDIR=\"arm-linux-gnueabihf\" -DTCC_ARM_HARDFLOAT) +ifneq (,$(wildcard /lib/ld-linux-armhf.so.3 /lib/arm-linux-gnueabihf/ld-linux.so.3)) +NATIVE_DEFINES+=-DTCC_ARM_EABI -DTCC_ARM_HARDFLOAT +NATIVE_DEFINES+=$(if $(wildcard /lib/arm-linux-gnueabihf),-DCONFIG_MULTIARCHDIR=\"arm-linux-gnueabihf\") +endif endif NATIVE_DEFINES+=$(if $(shell grep -l "^Features.* \(vfp\|iwmmxt\) " /proc/cpuinfo),-DTCC_ARM_VFP) endif |
