149c5eacbSEd Maste# $FreeBSD$ 249c5eacbSEd Maste 30eaded92SGlen BarberPACKAGE= clibs 449c5eacbSEd MasteSHLIB_NAME= libgcc_s.so.1 56430a5fdSEd MasteSHLIBDIR?= /lib 649c5eacbSEd Maste 7c8b5e3deSConrad Meyer.include <bsd.opts.mk> 8c8b5e3deSConrad Meyer 92ed1e385SEd MasteMK_SSP= no 1049c5eacbSEd MasteWARNS?= 2 1149c5eacbSEd Maste 1249c5eacbSEd MasteLDFLAGS+= -nodefaultlibs 132f21ec01SEd MasteLIBADD+= c 14c8b5e3deSConrad Meyer 15c8b5e3deSConrad MeyerVERSION_DEF= ${.CURDIR}/Versions.def 16c8b5e3deSConrad MeyerSYMBOL_MAPS= ${.CURDIR}/Symbol.map 17c8b5e3deSConrad Meyer# Export ARM AEABI unwind routines needed by libc and libthr. 18c8b5e3deSConrad Meyer.if exists(${.CURDIR}/${MACHINE_CPUARCH}/Symbol.map) 19c8b5e3deSConrad MeyerSYMBOL_MAPS+= ${.CURDIR}/${MACHINE_CPUARCH}/Symbol.map 201fa29c42SMichal Meloun.else 211fa29c42SMichal MelounSYMBOL_MAPS+= ${.CURDIR}/SymbolDefault.map 22c8b5e3deSConrad 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. 29*7fa2f2a6SAlex RichardsonMK_WERROR.gcc= no 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