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