diff options
author | 2009-09-06 22:56:50 +0000 | |
---|---|---|
committer | 2009-09-06 22:56:50 +0000 | |
commit | f91f1b0d7f213282ae44cbc7bdd6bde28f11dc35 (patch) | |
tree | 3fb7606e3668605715f529f849b75b99d5992cbb | |
parent | add missing dependency on version.h to libdir target to fix parallel build fa... (diff) | |
download | net-tools-f91f1b0d7f213282ae44cbc7bdd6bde28f11dc35.tar.gz net-tools-f91f1b0d7f213282ae44cbc7bdd6bde28f11dc35.tar.bz2 net-tools-f91f1b0d7f213282ae44cbc7bdd6bde28f11dc35.zip |
convert -idirafter to -I
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.
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | lib/Makefile | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -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)/ diff --git a/lib/Makefile b/lib/Makefile index 976ebb8..431f258 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -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 |