NetBSD/external/gpl2/grep/Makefile.inc
kamil 45d1d00b99 Specify SANITIZER_RENAME_SYMBOL in grep
Rename local versions of regcomp regerror regexec regfree in order to
remove symbol clash with libc.
2018-06-25 18:02:49 +00:00

22 lines
522 B
Makefile

# $NetBSD: Makefile.inc,v 1.2 2018/06/25 18:02:49 kamil Exp $
.include <bsd.own.mk>
SANITIZER_RENAME_SYMBOL+= regcomp regerror regexec regfree
WARNS= 0
IDIST= ${NETBSDSRCDIR}/external/gpl2/grep/dist
CPPFLAGS+= -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H \
-I${.CURDIR}/../include -I${IDIST}/lib -I${IDIST}/src
DOBJDIR!= cd $(.CURDIR)/../lib && ${PRINTOBJDIR}
LIBGREPUTILS= ${DOBJDIR}/libgreputils.a
BINDIR= /usr/bin
.if exists(${.CURDIR}/../../Makefile.inc)
.include "${.CURDIR}/../../Makefile.inc"
.endif