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
|
|
|
|
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
|
2016-10-13 18:57:18 +00:00
|
|
|
VERSION_MAP= ${.CURDIR}/Version.map
|
|
|
|
|
|
|
|
.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.
|
|
|
|
NO_WERROR.gcc=
|
|
|
|
|
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>
|