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
This commit is contained in:
parent
7f39c0011f
commit
585d4a8062
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=215185
@ -15,6 +15,10 @@ MK_SSP= no
|
||||
|
||||
.include "${.CURDIR}/../../usr.bin/cc/Makefile.tgt"
|
||||
|
||||
.if ${TARGET_CPUARCH} == "sparc64"
|
||||
LIB= gcc
|
||||
.endif
|
||||
|
||||
.PATH: ${GCCDIR}/config/${GCC_CPU} ${GCCDIR}/config ${GCCDIR}
|
||||
|
||||
CFLAGS+= -DIN_GCC -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED \
|
||||
|
@ -147,11 +147,13 @@ SRCS+= ${file}.c
|
||||
. endif
|
||||
.endfor
|
||||
|
||||
.if ${MACHINE_CPUARCH} != "sparc64"
|
||||
. if ${MK_INSTALLLIB} != "no"
|
||||
SYMLINKS+=libcompiler_rt.a ${LIBDIR}/libgcc.a
|
||||
. endif
|
||||
. if ${MK_PROFILE} != "no"
|
||||
SYMLINKS+=libcompiler_rt_p.a ${LIBDIR}/libgcc_p.a
|
||||
. endif
|
||||
.endif
|
||||
|
||||
.include <bsd.lib.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user