]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - lib/libssp/Makefile
zfs: merge openzfs/zfs@95f71c019
[FreeBSD/FreeBSD.git] / lib / libssp / Makefile
1
2 PACKAGE=        clibs
3 SHLIBDIR?=      /lib
4 SHLIB=          ssp
5 SHLIB_MAJOR=    0
6
7 VERSION_DEF=    ${.CURDIR}/Versions.def
8 SYMBOL_MAPS=    ${.CURDIR}/Symbol.map
9
10 .PATH: ${SRCTOP}/lib/libc/secure
11 CFLAGS+=        -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.
14 CFLAGS+=        -D_elf_aux_info=elf_aux_info
15 SRCS=           stack_protector.c fortify_stubs.c
16
17 CFLAGS.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.
21 SSP_CFLAGS:=
22
23 .include <bsd.lib.mk>