2016-10-13 18:57:18 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2016-11-11 18:47:53 +00:00
|
|
|
PACKAGE= clibs
|
2016-10-13 18:57:18 +00:00
|
|
|
SHLIB_NAME= libgcc_s.so.1
|
2016-10-24 14:56:13 +00:00
|
|
|
SHLIBDIR?= /lib
|
2016-10-13 18:57:18 +00:00
|
|
|
|
2021-08-02 08:48:21 +00:00
|
|
|
# Enabling UBSan triggers "undefined reference to vtable for __cxxabiv1::__function_type_info"
|
|
|
|
MK_UBSAN:= no
|
|
|
|
|
2019-11-05 03:20:40 +00:00
|
|
|
.include <bsd.opts.mk>
|
|
|
|
|
2016-11-11 23:28:07 +00:00
|
|
|
MK_SSP= no
|
2016-10-13 18:57:18 +00:00
|
|
|
WARNS?= 2
|
|
|
|
|
|
|
|
LDFLAGS+= -nodefaultlibs
|
2017-01-13 15:17:25 +00:00
|
|
|
LIBADD+= c
|
2019-11-05 03:20:40 +00:00
|
|
|
|
|
|
|
VERSION_DEF= ${.CURDIR}/Versions.def
|
|
|
|
SYMBOL_MAPS= ${.CURDIR}/Symbol.map
|
|
|
|
# Export ARM AEABI unwind routines needed by libc and libthr.
|
|
|
|
.if exists(${.CURDIR}/${MACHINE_CPUARCH}/Symbol.map)
|
|
|
|
SYMBOL_MAPS+= ${.CURDIR}/${MACHINE_CPUARCH}/Symbol.map
|
2019-12-16 14:08:49 +00:00
|
|
|
.else
|
|
|
|
SYMBOL_MAPS+= ${.CURDIR}/SymbolDefault.map
|
2019-11-05 03:20:40 +00:00
|
|
|
.endif
|
2016-10-13 18:57:18 +00:00
|
|
|
|
|
|
|
.include "../libcompiler_rt/Makefile.inc"
|
|
|
|
.include "../libgcc_eh/Makefile.inc"
|
|
|
|
|
2017-03-28 19:01:01 +00:00
|
|
|
# gcc has incompatible internal declarations for __divtc3 and __multc3, but has
|
|
|
|
# no option to silence its warning, so make warnings non-fatal.
|
2021-01-06 17:55:06 +00:00
|
|
|
MK_WERROR.gcc= no
|
2017-03-28 19:01:01 +00:00
|
|
|
|
2016-10-13 19:18:00 +00:00
|
|
|
LIBCSRCDIR= ${SRCTOP}/lib/libc
|
|
|
|
LIBMSRCDIR= ${SRCTOP}/lib/msun/src
|
|
|
|
CFLAGS+= -I${LIBCSRCDIR}/include -I${LIBCSRCDIR}/${MACHINE_CPUARCH}
|
|
|
|
CFLAGS+= -I${LIBMSRCDIR}
|
|
|
|
.PATH: ${LIBMSRCDIR}
|
|
|
|
SRCS+= s_fabs.c
|
|
|
|
SRCS+= s_fabsf.c
|
|
|
|
SRCS+= s_fabsl.c
|
|
|
|
SRCS+= s_fmax.c
|
|
|
|
SRCS+= s_fmaxf.c
|
|
|
|
SRCS+= s_logb.c
|
|
|
|
SRCS+= s_logbf.c
|
|
|
|
SRCS+= s_scalbn.c
|
|
|
|
SRCS+= s_scalbnf.c
|
2018-01-31 18:13:33 +00:00
|
|
|
|
|
|
|
# Don't include long double routines on architectures where long double
|
|
|
|
# is the same size as double.
|
2018-01-31 21:41:42 +00:00
|
|
|
.if ${MACHINE_CPUARCH} != "mips" && ${MACHINE_CPUARCH} != "arm" && \
|
2018-01-31 18:13:33 +00:00
|
|
|
${MACHINE_CPUARCH} != "powerpc"
|
|
|
|
SRCS+= s_fmaxl.c
|
|
|
|
SRCS+= s_logbl.c
|
2016-10-13 19:18:00 +00:00
|
|
|
SRCS+= s_scalbnl.c
|
2018-01-31 18:13:33 +00:00
|
|
|
.endif
|
2016-10-13 19:18:00 +00:00
|
|
|
|
2016-10-13 18:57:18 +00:00
|
|
|
.include <bsd.lib.mk>
|