0002-iptables-add-xtables-config-parser.h-to-BUILT_SOURCES.patch 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. From 4dc8e2aa91bd4151f7e5cd56d88d3731b4c1525e Mon Sep 17 00:00:00 2001
  2. From: Gustavo Zacarias <gustavo@zacarias.com.ar>
  3. Date: Wed, 30 Dec 2015 14:39:35 -0300
  4. Subject: [PATCH] iptables: add xtables-config-parser.h to BUILT_SOURCES
  5. Otherwise other sources that use it might be built before it's ready leading
  6. to build failure, for example by iptables/nft.c
  7. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
  8. ---
  9. Status: sent upstream (mailing list, no link yet)
  10. iptables/Makefile.am | 3 +++
  11. 1 file changed, 3 insertions(+)
  12. diff --git a/iptables/Makefile.am b/iptables/Makefile.am
  13. index 3c0faa5..c3eb8a8 100644
  14. --- a/iptables/Makefile.am
  15. +++ b/iptables/Makefile.am
  16. @@ -4,6 +4,8 @@ AM_CFLAGS = ${regular_CFLAGS}
  17. AM_CPPFLAGS = ${regular_CPPFLAGS} -I${top_builddir}/include -I${top_srcdir}/include ${kinclude_CPPFLAGS} ${libmnl_CFLAGS} ${libnftnl_CFLAGS} ${libnetfilter_conntrack_CFLAGS}
  18. AM_YFLAGS = -d
  19. +BUILT_SOURCES =
  20. +
  21. xtables_multi_SOURCES = xtables-multi.c iptables-xml.c
  22. xtables_multi_CFLAGS = ${AM_CFLAGS}
  23. xtables_multi_LDADD = ../extensions/libext.a
  24. @@ -27,6 +29,7 @@ xtables_multi_LDADD += ../libxtables/libxtables.la -lm
  25. # nftables compatibility layer
  26. if ENABLE_NFTABLES
  27. +BUILT_SOURCES += xtables-config-parser.h
  28. xtables_compat_multi_SOURCES = xtables-compat-multi.c iptables-xml.c
  29. xtables_compat_multi_CFLAGS = ${AM_CFLAGS}
  30. xtables_compat_multi_LDADD = ../extensions/libext.a ../extensions/libext_ebt.a
  31. --
  32. 2.4.10