freebsd-skq/lib/libgcc_s/Makefile
Ed Maste 2ed1e385b0 libcc_{s,eh}: build without SSP
As in the gnu/lib/libgcc Makefile:
    libgcc is linked in last and thus cannot depend on ssp
    symbols coming from earlier libraries. Disable stack protection
    for this library.

Reviewed by:	dim
Sponsored by:	The FreeBSD Foundation
2016-11-11 23:28:07 +00:00

35 lines
658 B
Makefile

# $FreeBSD$
PACKAGE= clibs
SHLIB_NAME= libgcc_s.so.1
SHLIBDIR?= /lib
MK_SSP= no
WARNS?= 2
LDFLAGS+= -nodefaultlibs
VERSION_MAP= ${.CURDIR}/Version.map
.include "../libcompiler_rt/Makefile.inc"
.include "../libgcc_eh/Makefile.inc"
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_fmaxl.c
SRCS+= s_logb.c
SRCS+= s_logbf.c
SRCS+= s_logbl.c
SRCS+= s_scalbn.c
SRCS+= s_scalbnf.c
SRCS+= s_scalbnl.c
.include <bsd.lib.mk>