summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/cc/Makefile.inc
diff options
context:
space:
mode:
authorandrew <andrew@FreeBSD.org>2013-01-17 05:56:28 +0000
committerandrew <andrew@FreeBSD.org>2013-01-17 05:56:28 +0000
commit9b858bb6f0adb73473a948583965d4fc128312c8 (patch)
tree24606f697ac98c0b9dab3e26889f40567aa563e5 /gnu/usr.bin/cc/Makefile.inc
parent9d3b6799014eb32e9bd3bb2e40cc8d39a0cc2968 (diff)
downloadFreeBSD-src-9b858bb6f0adb73473a948583965d4fc128312c8.zip
FreeBSD-src-9b858bb6f0adb73473a948583965d4fc128312c8.tar.gz
Add compiler support for the ARM EABI.
ARM EABI support is disabled by default and can be enabled by setting WITH_ARM_EABI when building, however only the kernel-toolchain target will work with this flag until the rest of the support is added.
Diffstat (limited to 'gnu/usr.bin/cc/Makefile.inc')
-rw-r--r--gnu/usr.bin/cc/Makefile.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/gnu/usr.bin/cc/Makefile.inc b/gnu/usr.bin/cc/Makefile.inc
index 7a5991e..0302617 100644
--- a/gnu/usr.bin/cc/Makefile.inc
+++ b/gnu/usr.bin/cc/Makefile.inc
@@ -26,6 +26,10 @@ CSTD?= gnu89
CFLAGS+= -DCROSS_COMPILE
.endif
+.if ${TARGET_CPUARCH} == "arm" && ${MK_ARM_EABI} != "no"
+CFLAGS+= -DTARGET_ARM_EABI
+.endif
+
.if ${TARGET_ARCH} == "armeb" || ${TARGET_ARCH} == "armv6eb"
CFLAGS += -DTARGET_ENDIAN_DEFAULT=MASK_BIG_END
.endif
OpenPOWER on IntegriCloud