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