4 SHLIB_NAME= libgcc_s.so.1
7 # Enabling UBSan triggers "undefined reference to vtable for __cxxabiv1::__function_type_info"
10 .include <bsd.opts.mk>
15 LDFLAGS+= -nodefaultlibs
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
24 SYMBOL_MAPS+= ${.CURDIR}/SymbolDefault.map
27 .include "../libcompiler_rt/Makefile.inc"
28 .include "../libgcc_eh/Makefile.inc"
30 # gcc has incompatible internal declarations for __divtc3 and __multc3, but has
31 # no option to silence its warning, so make warnings non-fatal.
34 LIBCSRCDIR= ${SRCTOP}/lib/libc
35 LIBMSRCDIR= ${SRCTOP}/lib/msun/src
36 CFLAGS+= -I${LIBCSRCDIR}/include -I${LIBCSRCDIR}/${MACHINE_CPUARCH}
37 CFLAGS+= -I${LIBMSRCDIR}
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"