summaryrefslogtreecommitdiffstats
path: root/lib/libcompiler_rt
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2010-11-12 15:52:27 +0000
committered <ed@FreeBSD.org>2010-11-12 15:52:27 +0000
commit3bf90be3252bf06fbc103a421544d669b067fe33 (patch)
tree9306551b8b87fb542b358b1196ec177465bf56e5 /lib/libcompiler_rt
parent4de33564ffa4821cd65437a1e489da018d1c4979 (diff)
downloadFreeBSD-src-3bf90be3252bf06fbc103a421544d669b067fe33.zip
FreeBSD-src-3bf90be3252bf06fbc103a421544d669b067fe33.tar.gz
Revert to libgcc for sparc64.
I've had a report of a sparc64 system where cc1 generates illegal instructions. We still have to diagnose this properly, but instead of hosing all sparc64 boxes out there, fall back to libgcc to prevent more damage. Reported by: Florian Smeets
Diffstat (limited to 'lib/libcompiler_rt')
-rw-r--r--lib/libcompiler_rt/Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/libcompiler_rt/Makefile b/lib/libcompiler_rt/Makefile
index 2da28aa..103bb8c 100644
--- a/lib/libcompiler_rt/Makefile
+++ b/lib/libcompiler_rt/Makefile
@@ -147,11 +147,13 @@ SRCS+= ${file}.c
. endif
.endfor
-.if ${MK_INSTALLLIB} != "no"
+.if ${MACHINE_CPUARCH} != "sparc64"
+. if ${MK_INSTALLLIB} != "no"
SYMLINKS+=libcompiler_rt.a ${LIBDIR}/libgcc.a
-.endif
-.if ${MK_PROFILE} != "no"
+. endif
+. if ${MK_PROFILE} != "no"
SYMLINKS+=libcompiler_rt_p.a ${LIBDIR}/libgcc_p.a
+. endif
.endif
.include <bsd.lib.mk>
OpenPOWER on IntegriCloud