xref: /freebsd-14.2/lib/libcompiler_rt/Makefile (revision 7fa2f2a6)
1a3cf0ef5SEd Schouten# $FreeBSD$
2a3cf0ef5SEd Schouten
3c6063d0dSWarner Losh.include <src.opts.mk>
4a3cf0ef5SEd Schouten
5a70cba95SGlen BarberPACKAGE=	lib${LIB}
6a3cf0ef5SEd SchoutenLIB=		compiler_rt
7a723bb66SRyan LibbyMK_SSP=		no
8a3cf0ef5SEd SchoutenNO_PIC=
9a3cf0ef5SEd SchoutenWARNS?=		2
10a3cf0ef5SEd Schouten
1153b715b5SDimitry AndricCFLAGS+=	${PICFLAG}
1253b715b5SDimitry AndricCFLAGS+=	-fvisibility=hidden
1353b715b5SDimitry AndricCFLAGS+=	-DVISIBILITY_HIDDEN
1453b715b5SDimitry AndricCFLAGS+=	-I${SRCTOP}/contrib/libcxxrt
15a3cf0ef5SEd Schouten
16d006dde2SDimitry Andric# gcc has incompatible internal declarations for __divtc3 and __multc3, but has
17d006dde2SDimitry Andric# no option to silence its warning, so make warnings non-fatal.
18*7fa2f2a6SAlex RichardsonMK_WERROR.gcc=	no
19d006dde2SDimitry Andric
20040b3049SEd Maste.include "Makefile.inc"
2179ef2c64SAndrew Turner
22a3cf0ef5SEd Schouten.if ${MK_INSTALLLIB} != "no"
23a3cf0ef5SEd SchoutenSYMLINKS+=	libcompiler_rt.a ${LIBDIR}/libgcc.a
24a3cf0ef5SEd Schouten.endif
25a3cf0ef5SEd Schouten.if ${MK_PROFILE} != "no"
26a3cf0ef5SEd SchoutenSYMLINKS+=	libcompiler_rt_p.a ${LIBDIR}/libgcc_p.a
27a3cf0ef5SEd Schouten.endif
28a3cf0ef5SEd Schouten
29a3cf0ef5SEd Schouten.include <bsd.lib.mk>
30