xref: /freebsd/lib/libcompiler_rt/Makefile (revision b51f459a2098622c31ed54f5c1bf0e03efce403b)
1# $FreeBSD$
2
3.include <src.opts.mk>
4
5PACKAGE=	lib${LIB}
6LIB=		compiler_rt
7MK_SSP=		no
8NO_PIC=
9WARNS?=		2
10
11CFLAGS+=	${PICFLAG}
12CFLAGS+=	-fvisibility=hidden
13CFLAGS+=	-DVISIBILITY_HIDDEN
14CFLAGS+=	-I${SRCTOP}/contrib/libcxxrt
15
16# gcc has incompatible internal declarations for __divtc3 and __multc3, but has
17# no option to silence its warning, so make warnings non-fatal.
18MK_WERROR.gcc=	no
19
20.include "Makefile.inc"
21
22.if ${MK_INSTALLLIB} != "no"
23SYMLINKS+=	libcompiler_rt.a ${LIBDIR}/libgcc.a
24.endif
25.if ${MK_PROFILE} != "no"
26SYMLINKS+=	libcompiler_rt_p.a ${LIBDIR}/libgcc_p.a
27.endif
28
29.include <bsd.lib.mk>
30