convert -idirafter to -I
authorMike Frysinger <vapier@gentoo.org>
Sun, 6 Sep 2009 22:56:50 +0000 (22:56 +0000)
committerMike Frysinger <vapier@gentoo.org>
Sun, 6 Sep 2009 22:56:50 +0000 (22:56 +0000)
The local include trees no longer need -idirafter semantics, so use the
normal -I flags to avoid random cruft on users' systems.  This fixes Gentoo
#283759 where user had local headers named the same as the net-tools local
headers, but the toolchain defaulted to the system paths due to -idirafter.

Makefile
lib/Makefile

index 7459224..3d87c07 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -112,7 +112,7 @@ endif
 
 NET_LIB = $(NET_LIB_PATH)/lib$(NET_LIB_NAME).a
 
-CPPFLAGS += -I. -idirafter ./include/ -I$(NET_LIB_PATH)
+CPPFLAGS += -I. -I$(TOPDIR)/include -I$(NET_LIB_PATH)
 LDFLAGS  += -L$(NET_LIB_PATH)
 
 SUBDIRS        = man/ $(NET_LIB_PATH)/
index 976ebb8..431f258 100644 (file)
@@ -36,7 +36,7 @@ OBJS  = $(sort $(VARIA) $(AFOBJS) $(HWOBJS) \
 
 # This can be overwritten by the TOPLEVEL Makefile
 TOPDIR=..
-CFLAGS += -I$(TOPDIR) -idirafter $(TOPDIR)/include # -fPIC
+CFLAGS += -I$(TOPDIR) -I$(TOPDIR)/include # -fPIC
 SONAME=libnet-tools.so.0
 
 .SUFFIXES: .a .so