summaryrefslogtreecommitdiffstats
path: root/gnu/lib/csu
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2012-04-16 21:36:55 +0000
committerdim <dim@FreeBSD.org>2012-04-16 21:36:55 +0000
commit0b9f8d0983917f537b2e7566d4e7756a889d7407 (patch)
tree09f419ce639b114c9f5bad0aeb2e8cead0f25e8e /gnu/lib/csu
parent97ce6d5fb11b4c08790e829a51412306947c53c0 (diff)
downloadFreeBSD-src-0b9f8d0983917f537b2e7566d4e7756a889d7407.zip
FreeBSD-src-0b9f8d0983917f537b2e7566d4e7756a889d7407.tar.gz
Work around an issue on 32-bit PowerPC, where clang executable can get
too big, causing 'relocation truncated to fit' errors at link time. Reviewed by: nwhitehorn
Diffstat (limited to 'gnu/lib/csu')
-rw-r--r--gnu/lib/csu/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/gnu/lib/csu/Makefile b/gnu/lib/csu/Makefile
index 4999d06..1c31a98 100644
--- a/gnu/lib/csu/Makefile
+++ b/gnu/lib/csu/Makefile
@@ -34,6 +34,7 @@ CFLAGS+= -include osreldate.h
.if ${MACHINE_CPUARCH} == "powerpc"
TGTOBJS= crtsavres.o
SRCS+= crtsavres.asm
+CFLAGS+= -mlongcall
.endif
.if ${MACHINE_CPUARCH} == "sparc64"
TGTOBJS= crtfastmath.o
OpenPOWER on IntegriCloud