From: Ben Gras Date: Sun, 20 Jun 2010 12:32:41 +0000 (+0000) Subject: force gcc to look in ../../../include before /usr/local/include X-Git-Tag: v3.1.8~425 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/CHANGES?a=commitdiff_plain;h=cedc0404e1490d43e8506955ce98203b39e9a6ec;p=minix.git force gcc to look in ../../../include before /usr/local/include --- diff --git a/commands/grep/Makefile b/commands/grep/Makefile index 692540d25..34c9fb481 100644 --- a/commands/grep/Makefile +++ b/commands/grep/Makefile @@ -15,13 +15,15 @@ MLINKS= grep.1 egrep.1 \ grep.1 zegrep.1 \ grep.1 zfgrep.1 -CFLAGS+= -Wall - LDADD= -lz DPADD= ${LIBZ} +.if ${COMPILER_TYPE} == "gnu" +CFLAGS+= -Wall +CPPFLAGS+= -isystem ../../../include +.endif + .if ${OPSYS} == "Minix" -CPPFLAGS+= -D_POSIX_SOURCE -D_MINIX .include .else .include