]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
iptables out-of-tree build directory
authorJan Engelhardt <jengelh@medozas.de>
Mon, 12 May 2008 08:28:34 +0000 (10:28 +0200)
committerPatrick McHardy <kaber@trash.net>
Mon, 12 May 2008 16:11:23 +0000 (18:11 +0200)
Reported by: Henrik Nordstrom

When xtables.h is not already found in /usr/include, compilation
would fail when ${top_srcdir} != ${top_builddir}.

extensions/GNUmakefile.in

index 31e6fb77c7c0c39957597ac10311828813d39be2..9c46ab10043dbb07d736c5e19d605d33f23b56a0 100644 (file)
@@ -1,5 +1,7 @@
 # -*- Makefile -*-
 
+top_builddir := @top_builddir@
+builddir     := @builddir@
 top_srcdir  := @top_srcdir@
 srcdir      := @srcdir@
 ksourcedir  := @ksourcedir@
@@ -16,7 +18,7 @@ LDFLAGS        := @LDFLAGS@
 regular_CFLAGS := @regular_CFLAGS@
 kinclude_CFLAGS := @kinclude_CFLAGS@
 
-AM_CFLAGS      := ${regular_CFLAGS} -I${top_srcdir}/include ${kinclude_CFLAGS}
+AM_CFLAGS      := ${regular_CFLAGS} -I${top_builddir}/include -I${top_srcdir}/include ${kinclude_CFLAGS}
 AM_DEPFLAGS     = -Wp,-MMD,$(@D)/.$(@F).d,-MT,$@
 
 ifeq (${V},)