7fa2f2a62f
As suggested in D27598. This also supports MK_WERROR.clang=no and MK_WERROR.gcc=no to support the existing NO_WERROR.<compiler> uses. Reviewed By: brooks Differential Revision: https://reviews.freebsd.org/D27601
30 lines
601 B
Makefile
30 lines
601 B
Makefile
# $FreeBSD$
|
|
|
|
.include <src.opts.mk>
|
|
|
|
PACKAGE= lib${LIB}
|
|
LIB= compiler_rt
|
|
MK_SSP= no
|
|
NO_PIC=
|
|
WARNS?= 2
|
|
|
|
CFLAGS+= ${PICFLAG}
|
|
CFLAGS+= -fvisibility=hidden
|
|
CFLAGS+= -DVISIBILITY_HIDDEN
|
|
CFLAGS+= -I${SRCTOP}/contrib/libcxxrt
|
|
|
|
# gcc has incompatible internal declarations for __divtc3 and __multc3, but has
|
|
# no option to silence its warning, so make warnings non-fatal.
|
|
MK_WERROR.gcc= no
|
|
|
|
.include "Makefile.inc"
|
|
|
|
.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
|
|
|
|
.include <bsd.lib.mk>
|