]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - lib/libgcc_s/Makefile
file: upgrade to 5.43.
[FreeBSD/FreeBSD.git] / lib / libgcc_s / Makefile
1 # $FreeBSD$
2
3 PACKAGE=        clibs
4 SHLIB_NAME=     libgcc_s.so.1
5 SHLIBDIR?=      /lib
6
7 # Enabling UBSan triggers "undefined reference to vtable for __cxxabiv1::__function_type_info"
8 MK_UBSAN:=      no
9
10 .include <bsd.opts.mk>
11
12 MK_SSP=         no
13 WARNS?= 2
14
15 LDFLAGS+=       -nodefaultlibs
16 LIBADD+=        c
17
18 VERSION_DEF=    ${.CURDIR}/Versions.def
19 SYMBOL_MAPS=    ${.CURDIR}/Symbol.map
20 # Export ARM AEABI unwind routines needed by libc and libthr.
21 .if exists(${.CURDIR}/${MACHINE_CPUARCH}/Symbol.map)
22 SYMBOL_MAPS+=   ${.CURDIR}/${MACHINE_CPUARCH}/Symbol.map
23 .else
24 SYMBOL_MAPS+=   ${.CURDIR}/SymbolDefault.map
25 .endif
26
27 .include "../libcompiler_rt/Makefile.inc"
28 .include "../libgcc_eh/Makefile.inc"
29
30 # gcc has incompatible internal declarations for __divtc3 and __multc3, but has
31 # no option to silence its warning, so make warnings non-fatal.
32 MK_WERROR.gcc=  no
33
34 LIBCSRCDIR=     ${SRCTOP}/lib/libc
35 LIBMSRCDIR=     ${SRCTOP}/lib/msun/src
36 CFLAGS+=        -I${LIBCSRCDIR}/include -I${LIBCSRCDIR}/${MACHINE_CPUARCH}
37 CFLAGS+=        -I${LIBMSRCDIR}
38 .PATH:          ${LIBMSRCDIR}
39 SRCS+=          s_fabs.c
40 SRCS+=          s_fabsf.c
41 SRCS+=          s_fabsl.c
42 SRCS+=          s_fmax.c
43 SRCS+=          s_fmaxf.c
44 SRCS+=          s_logb.c
45 SRCS+=          s_logbf.c
46 SRCS+=          s_scalbn.c
47 SRCS+=          s_scalbnf.c
48
49 # Don't include long double routines on architectures where long double
50 # is the same size as double.
51 .if ${MACHINE_CPUARCH} != "mips" && ${MACHINE_CPUARCH} != "arm" && \
52     ${MACHINE_CPUARCH} != "powerpc"
53 SRCS+=          s_fmaxl.c
54 SRCS+=          s_logbl.c
55 SRCS+=          s_scalbnl.c
56 .endif
57
58 .include <bsd.lib.mk>