mirror of
https://github.com/mirror/tinycc.git
synced 2025-01-01 04:20:09 +08:00
Favor arm hardfloat over arm softfloat.
Favor ARM hardfloat over ARM softfloat calling convention. In particular, this solve the problem of the raspbian distribution where the softfloat ld.so pathname (lib/ld-linux.so.3) is actually a symlink to the hardfloat ld.so pathname (/lib/arm-linux-gnueabihf/ld-2.13.so).
This commit is contained in:
parent
bcac413c30
commit
52947e5844
8
Makefile
8
Makefile
@ -57,12 +57,12 @@ endif
|
||||
ifeq ($(ARCH),arm)
|
||||
NATIVE_DEFINES=-DTCC_TARGET_ARM
|
||||
NATIVE_DEFINES+=-DWITHOUT_LIBTCC
|
||||
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 ifneq (,$(wildcard /lib/ld-linux-armhf.so.3 /lib/arm-linux-gnueabihf/ld-linux.so.3))
|
||||
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\")
|
||||
else 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\")
|
||||
endif
|
||||
NATIVE_DEFINES+=$(if $(shell grep -l "^Features.* \(vfp\|iwmmxt\) " /proc/cpuinfo),-DTCC_ARM_VFP)
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user