Replace LIBGCC by LIBCOMPILER_RT.
We now use libcompiler_rt on all platforms now. Instead of referring directly to -lgcc and LIBGCC, use -lcompiler_rt and LIBCOMPILER_RT.
This commit is contained in:
parent
10c4018057
commit
37656b872b
@ -119,8 +119,8 @@ LIB1ASMFUNCS = _dvmd_tls _bb_init_func
|
||||
.if ${MK_ARM_EABI} != "no"
|
||||
LIB2ADDEH = unwind-arm.c libunwind.S pr-support.c unwind-c.c
|
||||
# Some compilers generate __aeabi_ functions libgcc_s is missing
|
||||
DPADD+= ${LIBGCC}
|
||||
LDADD+= -lgcc
|
||||
DPADD+= ${LIBCOMPILER_RT}
|
||||
LDADD+= -lcompiler_rt
|
||||
.else
|
||||
LIB2FUNCS_EXTRA = floatunsidf.c floatunsisf.c
|
||||
.endif
|
||||
|
@ -40,11 +40,11 @@ CFLAGS+=${CANCELPOINTS_CFLAGS}
|
||||
.endif
|
||||
|
||||
#
|
||||
# Only link with static libgcc.a (no libgcc_eh.a).
|
||||
# Link with static libcompiler_rt.a.
|
||||
#
|
||||
DPADD+= ${LIBGCC}
|
||||
DPADD+= ${LIBCOMPILER_RT}
|
||||
LDFLAGS+= -nodefaultlibs
|
||||
LDADD+= -lgcc
|
||||
LDADD+= -lcompiler_rt
|
||||
|
||||
.if ${MK_SSP} != "no"
|
||||
LDADD+= -lssp_nonshared
|
||||
|
@ -43,11 +43,12 @@ DPADD= ${LIBC_PIC}
|
||||
LDADD= -lc_pic
|
||||
|
||||
.if ${MACHINE_CPUARCH} == "arm" && ${MK_ARM_EABI} != "no"
|
||||
# Some of the required math functions (div & mod) are implemented in libgcc
|
||||
# on ARM. The library also needs to be placed first to be correctly linked.
|
||||
# As some of the functions are used before we have shared libraries.
|
||||
DPADD+= ${LIBGCC}
|
||||
LDADD+= -lgcc
|
||||
# Some of the required math functions (div & mod) are implemented in
|
||||
# libcompiler_rt on ARM. The library also needs to be placed first to be
|
||||
# correctly linked. As some of the functions are used before we have
|
||||
# shared libraries.
|
||||
DPADD+= ${LIBCOMPILER_RT}
|
||||
LDADD+= -lcompiler_rt
|
||||
.endif
|
||||
|
||||
|
||||
|
@ -36,6 +36,7 @@ LIBCAPSICUM?= ${DESTDIR}${LIBDIR}/libcapsicum.a
|
||||
LIBCASPER?= ${DESTDIR}${LIBDIR}/libcasper.a
|
||||
LIBCOM_ERR?= ${DESTDIR}${LIBDIR}/libcom_err.a
|
||||
LIBCOMPAT?= ${DESTDIR}${LIBDIR}/libcompat.a
|
||||
LIBCOMPILER_RT?=${DESTDIR}${LIBDIR}/libgcc.a
|
||||
LIBCRYPT?= ${DESTDIR}${LIBDIR}/libcrypt.a
|
||||
LIBCRYPTO?= ${DESTDIR}${LIBDIR}/libcrypto.a
|
||||
LIBCTF?= ${DESTDIR}${LIBDIR}/libctf.a
|
||||
@ -53,8 +54,6 @@ LIBFETCH?= ${DESTDIR}${LIBDIR}/libfetch.a
|
||||
LIBFL?= "don't use LIBFL, use LIBL"
|
||||
LIBFORM?= ${DESTDIR}${LIBDIR}/libform.a
|
||||
LIBG2C?= ${DESTDIR}${LIBDIR}/libg2c.a
|
||||
LIBGCC?= ${DESTDIR}${LIBDIR}/libgcc.a
|
||||
LIBGCC_PIC?= ${DESTDIR}${LIBDIR}/libgcc_pic.a
|
||||
LIBGEOM?= ${DESTDIR}${LIBDIR}/libgeom.a
|
||||
LIBGNUREGEX?= ${DESTDIR}${LIBDIR}/libgnuregex.a
|
||||
LIBGSSAPI?= ${DESTDIR}${LIBDIR}/libgssapi.a
|
||||
|
Loading…
x
Reference in New Issue
Block a user