2020-01-04 20:19:25 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PACKAGE= clibs
|
|
|
|
SHLIBDIR?= /lib
|
|
|
|
SHLIB= ssp
|
|
|
|
SHLIB_MAJOR= 0
|
|
|
|
|
|
|
|
VERSION_DEF= ${.CURDIR}/Versions.def
|
|
|
|
SYMBOL_MAPS= ${.CURDIR}/Symbol.map
|
|
|
|
|
|
|
|
.PATH: ${SRCTOP}/lib/libc/secure
|
|
|
|
CFLAGS+= -I${SRCTOP}/lib/libc/include
|
|
|
|
# _elf_aux_info is exported from libc as elf_aux_info(3), so just that for the
|
|
|
|
# libssp build instead.
|
|
|
|
CFLAGS+= -D_elf_aux_info=elf_aux_info
|
|
|
|
SRCS= stack_protector.c fortify_stubs.c
|
|
|
|
|
|
|
|
CFLAGS.fortify_stubs.c= -Wno-unused-parameter
|
|
|
|
|
2020-03-14 15:15:27 +00:00
|
|
|
# Stack protection on libssp symbols should be considered harmful, as we may
|
|
|
|
# be talking about, for example, the guard setup constructor.
|
|
|
|
SSP_CFLAGS:=
|
|
|
|
|
2020-01-04 20:19:25 +00:00
|
|
|
.include <bsd.lib.mk>
|