summaryrefslogtreecommitdiffstats
path: root/gnu/lib/csu
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/lib/csu
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/lib/csu')
-rw-r--r--gnu/lib/csu/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/gnu/lib/csu/Makefile b/gnu/lib/csu/Makefile
index a65be66..1efe865 100644
--- a/gnu/lib/csu/Makefile
+++ b/gnu/lib/csu/Makefile
@@ -24,6 +24,10 @@ CFLAGS+= -I${GCCLIB}/include -I${GCCDIR}/config -I${GCCDIR} -I. \
CRTS_CFLAGS= -DCRTSTUFFS_O -DSHARED ${PICFLAG}
MKDEP= -DCRT_BEGIN
+.if ${TARGET_CPUARCH} == "arm" && ${MK_ARM_EABI} != "no"
+CFLAGS+= -DTARGET_ARM_EABI
+.endif
+
.if ${MACHINE_CPUARCH} == "ia64"
BEGINSRC= crtbegin.asm
ENDSRC= crtend.asm
OpenPOWER on IntegriCloud