| https://bugs.gentoo.org/437712 |
| |
| From 269655d54e22f3a36250bb2c4639dddd102258c6 Mon Sep 17 00:00:00 2001 |
| From: Jan Engelhardt <jengelh@inai.de> |
| Date: Mon, 8 Oct 2012 12:04:56 +0000 |
| Subject: [PATCH] build: remove symlink-only extensions from static object |
| list |
| |
| $ ./configure --enable-static --disable-shared --enable-ipv4 |
| --enable-ipv6 && make |
| [...] |
| make[3]: *** No rule to make target "libxt_NOTRACK.o", needed by |
| "libext.a". Stop. |
| |
| Signed-off-by: Jan Engelhardt <jengelh@inai.de> |
| Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org> |
| --- |
| extensions/GNUmakefile.in | 8 ++++---- |
| 1 file changed, 4 insertions(+), 4 deletions(-) |
| |
| diff --git a/extensions/GNUmakefile.in b/extensions/GNUmakefile.in |
| index 8b38df9..1cef239 100644 |
| --- a/extensions/GNUmakefile.in |
| +++ b/extensions/GNUmakefile.in |
| @@ -39,7 +39,7 @@ endif |
| # Wildcard module list |
| # |
| pfx_build_mod := $(patsubst ${srcdir}/libxt_%.c,%,$(sort $(wildcard ${srcdir}/libxt_*.c))) |
| -pfx_build_mod += NOTRACK state |
| +pfx_symlinks := NOTRACK state |
| @ENABLE_IPV4_TRUE@ pf4_build_mod := $(patsubst ${srcdir}/libipt_%.c,%,$(sort $(wildcard ${srcdir}/libipt_*.c))) |
| @ENABLE_IPV6_TRUE@ pf6_build_mod := $(patsubst ${srcdir}/libip6t_%.c,%,$(sort $(wildcard ${srcdir}/libip6t_*.c))) |
| pfx_build_mod := $(filter-out @blacklist_modules@,${pfx_build_mod}) |
| @@ -48,7 +48,7 @@ pf6_build_mod := $(filter-out @blacklist_modules@,${pf6_build_mod}) |
| pfx_objs := $(patsubst %,libxt_%.o,${pfx_build_mod}) |
| pf4_objs := $(patsubst %,libipt_%.o,${pf4_build_mod}) |
| pf6_objs := $(patsubst %,libip6t_%.o,${pf6_build_mod}) |
| -pfx_solibs := $(patsubst %,libxt_%.so,${pfx_build_mod}) |
| +pfx_solibs := $(patsubst %,libxt_%.so,${pfx_build_mod} ${pfx_symlinks}) |
| pf4_solibs := $(patsubst %,libipt_%.so,${pf4_build_mod}) |
| pf6_solibs := $(patsubst %,libip6t_%.so,${pf6_build_mod}) |
| |
| @@ -220,7 +220,7 @@ man_run = \ |
| done >$@; |
| |
| matches.man: .initext.dd .initext4.dd .initext6.dd $(wildcard ${srcdir}/lib*.man) |
| - $(call man_run,$(call ex_matches,${pfx_build_mod} ${pf4_build_mod} ${pf6_build_mod})) |
| + $(call man_run,$(call ex_matches,${pfx_build_mod} ${pf4_build_mod} ${pf6_build_mod} ${pfx_symlinks})) |
| |
| targets.man: .initext.dd .initext4.dd .initext6.dd $(wildcard ${srcdir}/lib*.man) |
| - $(call man_run,$(call ex_targets,${pfx_build_mod} ${pf4_build_mod} ${pf6_build_mod})) |
| + $(call man_run,$(call ex_targets,${pfx_build_mod} ${pf4_build_mod} ${pf6_build_mod} ${pfx_symlinks})) |
| -- |
| 1.7.12 |
| |