xref: /freebsd/lib/libssp/Makefile (revision 1c4ee7dfb8affed302171232b0f612e6bcba3c10)
1
2PACKAGE=	clibs
3SHLIBDIR?=	/lib
4SHLIB=		ssp
5SHLIB_MAJOR=	0
6
7VERSION_DEF=	${.CURDIR}/Versions.def
8SYMBOL_MAPS=	${.CURDIR}/Symbol.map
9
10.PATH: ${SRCTOP}/lib/libc/secure
11CFLAGS+=	-I${SRCTOP}/lib/libc/include
12# _elf_aux_info is exported from libc as elf_aux_info(3), so just that for the
13# libssp build instead.
14CFLAGS+=	-D_elf_aux_info=elf_aux_info
15SRCS=		stack_protector.c fortify_stubs.c
16
17CFLAGS.fortify_stubs.c=	-Wno-unused-parameter
18
19# Stack protection on libssp symbols should be considered harmful, as we may
20# be talking about, for example, the guard setup constructor.
21SSP_CFLAGS:=
22
23.include <bsd.lib.mk>
24