diff options
author | 2007-04-08 17:51:44 +0000 | |
---|---|---|
committer | 2007-04-08 17:51:44 +0000 | |
commit | fa5463e017b22248f97abb26f9834a87b69c341f (patch) | |
tree | e8493bdfb90087dda3b9d1253ab40a46a723c16f /net-firewall/iptables/files | |
parent | Post-stabilization cleanup. (diff) | |
download | gentoo-2-fa5463e017b22248f97abb26f9834a87b69c341f.tar.gz gentoo-2-fa5463e017b22248f97abb26f9834a87b69c341f.tar.bz2 gentoo-2-fa5463e017b22248f97abb26f9834a87b69c341f.zip |
By default, let the toolchain worry about kernel header location #172209 by Karl Hiramoto.
(Portage version: 2.1.2.3)
Diffstat (limited to 'net-firewall/iptables/files')
-rw-r--r-- | net-firewall/iptables/files/iptables-1.3.7-kernel-dir.patch | 18 |
1 files changed, 18 insertions, 0 deletions
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 |