Use CPPFLAGS for -I, not CFLAGS or CXXFLAGS

CPPFLAGS is for the C Pre-Processor, and should be used for -I flags. In
a couple cases (nping, nmap) this was resulting in duplicate -Ilibpcap
arguments.
This commit is contained in:
dmiller 2013-12-11 23:17:42 +00:00
parent 26665465c6
commit a379a8ba2b
4 changed files with 8 additions and 16 deletions

View file

@ -34,7 +34,7 @@ if test "$user_localdirs" = 1; then
LDFLAGS="$LDFLAGS -L/usr/local/lib"
fi
if test -d /usr/local/include; then
CFLAGS="$CFLAGS -I/usr/local/include"
CPPFLAGS="$CPPFLAGS -I/usr/local/include"
fi
fi