xref: /freebsd/lib/libgcc_s/Makefile (revision c8b5e3de39bcfa6833d4ab2980b0dddd30edbb74)
149c5eacbSEd Maste# $FreeBSD$
249c5eacbSEd Maste
30eaded92SGlen BarberPACKAGE=	clibs
449c5eacbSEd MasteSHLIB_NAME=	libgcc_s.so.1
56430a5fdSEd MasteSHLIBDIR?=	/lib
649c5eacbSEd Maste
7*c8b5e3deSConrad Meyer.include <bsd.opts.mk>
8*c8b5e3deSConrad Meyer
92ed1e385SEd MasteMK_SSP=		no
1049c5eacbSEd MasteWARNS?=	2
1149c5eacbSEd Maste
1249c5eacbSEd MasteLDFLAGS+=	-nodefaultlibs
132f21ec01SEd MasteLIBADD+=	c
14*c8b5e3deSConrad Meyer
15*c8b5e3deSConrad Meyer.if ${MK_SYMVER} == "yes"
16*c8b5e3deSConrad MeyerVERSION_DEF=	${.CURDIR}/Versions.def
17*c8b5e3deSConrad MeyerSYMBOL_MAPS=	${.CURDIR}/Symbol.map
18*c8b5e3deSConrad Meyer# Export ARM AEABI unwind routines needed by libc and libthr.
19*c8b5e3deSConrad Meyer.if exists(${.CURDIR}/${MACHINE_CPUARCH}/Symbol.map)
20*c8b5e3deSConrad MeyerSYMBOL_MAPS+=	${.CURDIR}/${MACHINE_CPUARCH}/Symbol.map
21*c8b5e3deSConrad Meyer.endif
22*c8b5e3deSConrad Meyer.endif
2349c5eacbSEd Maste
2449c5eacbSEd Maste.include "../libcompiler_rt/Makefile.inc"
2549c5eacbSEd Maste.include "../libgcc_eh/Makefile.inc"
2649c5eacbSEd Maste
27b0a39ef0SEnji Cooper# gcc has incompatible internal declarations for __divtc3 and __multc3, but has
28b0a39ef0SEnji Cooper# no option to silence its warning, so make warnings non-fatal.
29b0a39ef0SEnji CooperNO_WERROR.gcc=
30b0a39ef0SEnji Cooper
31bff20752SEd MasteLIBCSRCDIR=	${SRCTOP}/lib/libc
32bff20752SEd MasteLIBMSRCDIR=	${SRCTOP}/lib/msun/src
33bff20752SEd MasteCFLAGS+=	-I${LIBCSRCDIR}/include -I${LIBCSRCDIR}/${MACHINE_CPUARCH}
34bff20752SEd MasteCFLAGS+=	-I${LIBMSRCDIR}
35bff20752SEd Maste.PATH:		${LIBMSRCDIR}
36bff20752SEd MasteSRCS+=		s_fabs.c
37bff20752SEd MasteSRCS+=		s_fabsf.c
38bff20752SEd MasteSRCS+=		s_fabsl.c
39bff20752SEd MasteSRCS+=		s_fmax.c
40bff20752SEd MasteSRCS+=		s_fmaxf.c
41bff20752SEd MasteSRCS+=		s_logb.c
42bff20752SEd MasteSRCS+=		s_logbf.c
43bff20752SEd MasteSRCS+=		s_scalbn.c
44bff20752SEd MasteSRCS+=		s_scalbnf.c
452c4bb7e3SJohn Baldwin
462c4bb7e3SJohn Baldwin# Don't include long double routines on architectures where long double
472c4bb7e3SJohn Baldwin# is the same size as double.
489de4d0b1SGlen Barber.if ${MACHINE_CPUARCH} != "mips" && ${MACHINE_CPUARCH} != "arm" && \
492c4bb7e3SJohn Baldwin    ${MACHINE_CPUARCH} != "powerpc"
502c4bb7e3SJohn BaldwinSRCS+=		s_fmaxl.c
512c4bb7e3SJohn BaldwinSRCS+=		s_logbl.c
52bff20752SEd MasteSRCS+=		s_scalbnl.c
532c4bb7e3SJohn Baldwin.endif
54bff20752SEd Maste
5549c5eacbSEd Maste.include <bsd.lib.mk>
56