]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
iptables: add xtables-config-parser.h to BUILT_SOURCES
authorGustavo Zacarias <gustavo@zacarias.com.ar>
Wed, 30 Dec 2015 17:51:30 +0000 (14:51 -0300)
committerPablo Neira Ayuso <pablo@netfilter.org>
Sun, 3 Jan 2016 22:13:34 +0000 (23:13 +0100)
Otherwise other sources that use it might be built before it's ready leading
to build failure, for example by iptables/nft.c

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
iptables/Makefile.am

index 3c0faa5a54df75d0ed5d97f809eb20adbe4ebd2c..c3eb8a81a44554baedb0c89e0c4479a5e57e8492 100644 (file)
@@ -4,6 +4,8 @@ AM_CFLAGS        = ${regular_CFLAGS}
 AM_CPPFLAGS      = ${regular_CPPFLAGS} -I${top_builddir}/include -I${top_srcdir}/include ${kinclude_CPPFLAGS} ${libmnl_CFLAGS} ${libnftnl_CFLAGS} ${libnetfilter_conntrack_CFLAGS}
 AM_YFLAGS = -d
 
+BUILT_SOURCES =
+
 xtables_multi_SOURCES  = xtables-multi.c iptables-xml.c
 xtables_multi_CFLAGS   = ${AM_CFLAGS}
 xtables_multi_LDADD    = ../extensions/libext.a
@@ -27,6 +29,7 @@ xtables_multi_LDADD   += ../libxtables/libxtables.la -lm
 
 # nftables compatibility layer
 if ENABLE_NFTABLES
+BUILT_SOURCES += xtables-config-parser.h
 xtables_compat_multi_SOURCES  = xtables-compat-multi.c iptables-xml.c
 xtables_compat_multi_CFLAGS   = ${AM_CFLAGS}
 xtables_compat_multi_LDADD    = ../extensions/libext.a ../extensions/libext_ebt.a