NetBSD/lib/libssp/Makefile
christos f499cd524a Add a BSD-licensed re-implementation of the gcc-4.1 libssp.
This adds bounds checking for the following functions:

    memset, fgets, gets, memcpy, memmove, memset, snprintf, sprintf, strcat,
    strcpy, strncat, strncpy, vsnprintf, vsprintf

This functionality is enabled by compiling with:

	gcc -I/usr/include/ssp -D_FORTIFY_SOURCE=<1|2> -lssp

Eventually gcc will provide -ffortify-source or something to automate this
[we hope :-)]
2006-11-08 19:52:11 +00:00

18 lines
459 B
Makefile

# $NetBSD: Makefile,v 1.1 2006/11/08 19:52:11 christos Exp $
USE_SHLIBDIR= yes
WARNS=4
CPPFLAGS+=-I${.CURDIR}/ssp
LIB= ssp
SRCS= gets_chk.c fgets_chk.c memcpy_chk.c memmove_chk.c memset_chk.c \
snprintf_chk.c sprintf_chk.c strcat_chk.c strcpy_chk.c \
strncat_chk.c strncpy_chk.c vsnprintf_chk.c vsprintf_chk.c
INCS= ssp/ssp.h ssp/stdio.h ssp/string.h ssp/unistd.h
INCSDIR=/usr/include
.include <bsd.own.mk>
.include <bsd.shlib.mk>
.include <bsd.lib.mk>