History

Enable arm hardfloat calling convention

Use arm hardfloat calling convention when the system is using it (detected by searching for hardfloat multiarch directory).

Thomas Preud'homme committed 14 years ago

Commit 034dce41 parent fad68c91 file · +5 −5Browse files

Unified · Split

Makefile+5−5
@@ -57,12 +57,12 @@ ifeq ($(ARCH),arm) · 56 unmodified lines
5757 NATIVE_DEFINES=-DTCC_TARGET_ARM
5858 NATIVE_DEFINES+=-DWITHOUT_LIBTCC
5959 NATIVE_DEFINES+=$(if $(wildcard /lib/ld-linux.so.3),-DTCC_ARM_EABI)
60−NATIVE_DEFINES+=$(if $(wildcard /lib/arm-linux-gnueabi),-DCONFIG_MULTIARCHDIR=\"arm-linux-gnueabi\")
60+ifneq (,$(wildcard /lib/arm-linux-gnueabi))
61+NATIVE_DEFINES+=-DCONFIG_MULTIARCHDIR=\"arm-linux-gnueabi\"
62+else
63+NATIVE_DEFINES+=$(if $(wildcard /lib/arm-linux-gnueabihf),-DCONFIG_MULTIARCHDIR=\"arm-linux-gnueabihf\" -DTCC_ARM_HARDFLOAT)
64+endif
6165 NATIVE_DEFINES+=$(if $(shell grep -l "^Features.* \(vfp\|iwmmxt\) " /proc/cpuinfo),-DTCC_ARM_VFP)
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
64−#NATIVE_DEFINES+=-DTCC_ARM_HARDFLOAT
65−#NATIVE_DEFINES+=$(if $(wildcard /lib/arm-linux-gnueabihf),-DCONFIG_MULTIARCHDIR=\"arm-linux-gnueabihf\")
6666 endif
6767
6868 ifdef CONFIG_WIN32

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