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.
Unified · Split
| @@ -59,8 +59,10 @@ NATIVE_DEFINES+=-DWITHOUT_LIBTCC · 58 unmodified lines | ||
| 59 | 59 | NATIVE_DEFINES+=$(if $(wildcard /lib/ld-linux.so.3),-DTCC_ARM_EABI) |
| 60 | 60 | NATIVE_DEFINES+=$(if $(wildcard /lib/arm-linux-gnueabi),-DCONFIG_MULTIARCHDIR=\"arm-linux-gnueabi\") |
| 61 | 61 | NATIVE_DEFINES+=$(if $(shell grep -l "^Features.* \(vfp\|iwmmxt\) " /proc/cpuinfo),-DTCC_ARM_VFP) |
| 62 | −# To use ARM hardfloat calling convension | |
| 62 | +# To use ARM hardfloat calling convension, uncomment the next 2 lines | |
| 63 | +# Beware: only -run and -c work so far, linking is not yet supported | |
| 63 | 64 | #NATIVE_DEFINES+=-DTCC_ARM_HARDFLOAT |
| 65 | +#NATIVE_DEFINES+=$(if $(wildcard /lib/arm-linux-gnueabihf),-DCONFIG_MULTIARCHDIR=\"arm-linux-gnueabihf\") | |
| 64 | 66 | endif |
| 65 | 67 | |
| 66 | 68 | ifdef CONFIG_WIN32 |