History

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.

Thomas Preud'homme committed 13 years ago

Commit 15a315f1 parent e2212731 file · +7 −4Browse files

Unified · Split

Makefile+7−4
@@ -69,11 +69,14 @@ endif · 68 unmodified lines
69ifeq ($(ARCH),arm)69ifeq ($(ARCH),arm)
70NATIVE_DEFINES=-DTCC_TARGET_ARM70NATIVE_DEFINES=-DTCC_TARGET_ARM
71NATIVE_DEFINES+=-DWITHOUT_LIBTCC71NATIVE_DEFINES+=-DWITHOUT_LIBTCC
72NATIVE_DEFINES+=$(if $(wildcard /lib/ld-linux.so.3),-DTCC_ARM_EABI)72ifneq (,$(wildcard /lib/ld-linux.so.3))
73ifneq (,$(wildcard /lib/arm-linux-gnueabi))73NATIVE_DEFINES+=-DTCC_ARM_EABI
74NATIVE_DEFINES+=-DCONFIG_MULTIARCHDIR=\"arm-linux-gnueabi\"74NATIVE_DEFINES+=$(if $(wildcard /lib/arm-linux-gnueabi), -DCONFIG_MULTIARCHDIR=\"arm-linux-gnueabi\")
75else75else
76NATIVE_DEFINES+=$(if $(wildcard /lib/arm-linux-gnueabihf),-DCONFIG_MULTIARCHDIR=\"arm-linux-gnueabihf\" -DTCC_ARM_HARDFLOAT)76ifneq (,$(wildcard /lib/ld-linux-armhf.so.3 /lib/arm-linux-gnueabihf/ld-linux.so.3))
77NATIVE_DEFINES+=-DTCC_ARM_EABI -DTCC_ARM_HARDFLOAT
78NATIVE_DEFINES+=$(if $(wildcard /lib/arm-linux-gnueabihf),-DCONFIG_MULTIARCHDIR=\"arm-linux-gnueabihf\")
79endif
77endif80endif
78NATIVE_DEFINES+=$(if $(shell grep -l "^Features.* \(vfp\|iwmmxt\) " /proc/cpuinfo),-DTCC_ARM_VFP)81NATIVE_DEFINES+=$(if $(shell grep -l "^Features.* \(vfp\|iwmmxt\) " /proc/cpuinfo),-DTCC_ARM_VFP)
79endif82endif

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t