]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - lib/libcompiler_rt/Makefile
Import device-tree files from Linux 5.11
[FreeBSD/FreeBSD.git] / lib / libcompiler_rt / Makefile
1 # $FreeBSD$
2
3 .include <src.opts.mk>
4
5 PACKAGE=        lib${LIB}
6 LIB=            compiler_rt
7 MK_SSP=         no
8 NO_PIC=
9 WARNS?=         2
10
11 CFLAGS+=        ${PICFLAG}
12 CFLAGS+=        -fvisibility=hidden
13 CFLAGS+=        -DVISIBILITY_HIDDEN
14 CFLAGS+=        -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.
18 MK_WERROR.gcc=  no
19
20 .include "Makefile.inc"
21
22 .if ${MK_INSTALLLIB} != "no"
23 SYMLINKS+=      libcompiler_rt.a ${LIBDIR}/libgcc.a
24 .endif
25 .if ${MK_PROFILE} != "no"
26 SYMLINKS+=      libcompiler_rt_p.a ${LIBDIR}/libgcc_p.a
27 .endif
28
29 .include <bsd.lib.mk>