From cedc0404e1490d43e8506955ce98203b39e9a6ec Mon Sep 17 00:00:00 2001 From: Ben Gras Date: Sun, 20 Jun 2010 12:32:41 +0000 Subject: [PATCH] force gcc to look in ../../../include before /usr/local/include --- commands/grep/Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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 -- 2.44.0