From fa5463e017b22248f97abb26f9834a87b69c341f Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sun, 8 Apr 2007 17:51:44 +0000 Subject: By default, let the toolchain worry about kernel header location #172209 by Karl Hiramoto. (Portage version: 2.1.2.3) --- .../iptables/files/iptables-1.3.7-kernel-dir.patch | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 net-firewall/iptables/files/iptables-1.3.7-kernel-dir.patch (limited to 'net-firewall/iptables/files') diff --git a/net-firewall/iptables/files/iptables-1.3.7-kernel-dir.patch b/net-firewall/iptables/files/iptables-1.3.7-kernel-dir.patch new file mode 100644 index 000000000000..758bc3a0a228 --- /dev/null +++ b/net-firewall/iptables/files/iptables-1.3.7-kernel-dir.patch @@ -0,0 +1,18 @@ +let the toolchain figure out the default header location + +http://bugs.gentoo.org/172209 + +--- Makefile ++++ Makefile +@@ -37,7 +37,10 @@ + endif + + COPT_FLAGS:=-O2 +-CFLAGS:=$(COPT_FLAGS) -Wall -Wunused -I$(KERNEL_DIR)/include -Iinclude/ -DIPTABLES_VERSION=\"$(IPTABLES_VERSION)\" #-g -DDEBUG #-pg # -DIPTC_DEBUG ++CFLAGS:=$(COPT_FLAGS) -Wall -Wunused -Iinclude/ -DIPTABLES_VERSION=\"$(IPTABLES_VERSION)\" #-g -DDEBUG #-pg # -DIPTC_DEBUG ++ifneq ($(KERNEL_DIR),) ++CFLAGS += -I$(KERNEL_DIR)/include ++endif + + ifdef NO_SHARED_LIBS + CFLAGS += -DNO_SHARED_LIBS=1 -- cgit v1.2.3-65-gdbad