mirror of
https://github.com/frida/tinycc
synced 2024-12-25 14:36:49 +03:00
Add multiarch directory for arm hardfloat variant
Arm hardfloat variant uses a different ABI than arm and uses thus a different multiarch directory for headers and libraries. This commit detect whether the system uses the hardfloat variant and configure the multiarch directory accordingly.
This commit is contained in:
parent
d1694f7d7e
commit
c9a2fbaad1
4
Makefile
4
Makefile
@ -59,8 +59,10 @@ 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\")
|
||||
NATIVE_DEFINES+=$(if $(shell grep -l "^Features.* \(vfp\|iwmmxt\) " /proc/cpuinfo),-DTCC_ARM_VFP)
|
||||
# To use ARM hardfloat calling convension
|
||||
# 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
|
||||
|
Loading…
Reference in New Issue
Block a user