freebsd-dev/gnu/lib/libssp/Makefile
Baptiste Daroussin 4232f82668 Enforce overwritting SHLIBDIR
Since METAMODE has been added, sys.mk loads bsd.mkopt.mk which ends load loading
bsd.own.mk which then defines SHLIBDIR before all the Makefile.inc everywhere.

This makes /lib being populated again.

Reported by:	many
2015-06-15 15:34:20 +00:00

41 lines
820 B
Makefile

# $FreeBSD$
SHLIBDIR= /lib
MK_PROFILE= no
MK_SSP= no
.include <bsd.own.mk>
GCCDIR= ${.CURDIR}/../../../contrib/gcc
GCCLIB= ${.CURDIR}/../../../contrib/gcclibs
SRCDIR= ${GCCLIB}/libssp
.PATH: ${SRCDIR} ${SRCDIR}/ssp
LIB= ssp
SHLIB_MAJOR= 0
LD_FATAL_WARNINGS= no
SRCS= ssp.c gets-chk.c memcpy-chk.c memmove-chk.c mempcpy-chk.c \
memset-chk.c snprintf-chk.c sprintf-chk.c stpcpy-chk.c \
strcat-chk.c strcpy-chk.c strncat-chk.c strncpy-chk.c \
vsnprintf-chk.c vsprintf-chk.c
CFLAGS+= -DHAVE_CONFIG_H
CFLAGS+= -I${.CURDIR} -I${SRCDIR} -I${GCCLIB}/include
VERSION_MAP= ${SRCDIR}/ssp.map
INCS= ssp.h string.h stdio.h unistd.h
INCSDIR=${INCLUDEDIR}/ssp
CLEANFILES= ssp.h
ssp.h: ssp.h.in
sed -e 's/@ssp_have_usable_vsnprintf@/define/' ${.ALLSRC} > ${.TARGET}
SUBDIR+= libssp_nonshared
.include <bsd.lib.mk>