2013-03-06 17:05:34 +00:00
|
|
|
Index: iptables-1.4.18/extensions/GNUmakefile.in
|
|
|
|
===================================================================
|
|
|
|
--- iptables-1.4.18.orig/extensions/GNUmakefile.in 2013-03-03 22:40:11.000000000 +0100
|
|
|
|
+++ iptables-1.4.18/extensions/GNUmakefile.in 2013-03-05 16:37:07.583256974 +0100
|
|
|
|
@@ -46,9 +46,24 @@
|
2012-02-22 01:47:48 +00:00
|
|
|
pfx_build_mod := $(filter-out @blacklist_modules@,${pfx_build_mod})
|
|
|
|
pf4_build_mod := $(filter-out @blacklist_modules@,${pf4_build_mod})
|
|
|
|
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})
|
|
|
|
+
|
|
|
|
+ifdef BUILTIN_MODULES
|
|
|
|
+pfx_build_static := $(filter $(BUILTIN_MODULES),${pfx_build_mod})
|
|
|
|
+pf4_build_static := $(filter $(BUILTIN_MODULES),${pf4_build_mod})
|
|
|
|
+pf6_build_static := $(filter $(BUILTIN_MODULES),${pf6_build_mod})
|
|
|
|
+else
|
|
|
|
+@ENABLE_STATIC_TRUE@ pfx_build_static := $(pfx_build_mod)
|
|
|
|
+@ENABLE_STATIC_TRUE@ pf4_build_static := $(pf4_build_mod)
|
|
|
|
+@ENABLE_STATIC_TRUE@ pf6_build_static := $(pf6_build_mod)
|
|
|
|
+endif
|
|
|
|
+
|
|
|
|
+pfx_build_mod := $(filter-out $(pfx_build_static),$(pfx_build_mod))
|
|
|
|
+pf4_build_mod := $(filter-out $(pf4_build_static),$(pf4_build_mod))
|
|
|
|
+pf6_build_mod := $(filter-out $(pf6_build_static),$(pf6_build_mod))
|
|
|
|
+
|
|
|
|
+pfx_objs := $(patsubst %,libxt_%.o,${pfx_build_static})
|
|
|
|
+pf4_objs := $(patsubst %,libipt_%.o,${pf4_build_static})
|
|
|
|
+pf6_objs := $(patsubst %,libip6t_%.o,${pf6_build_static})
|
2013-03-06 17:05:34 +00:00
|
|
|
pfx_solibs := $(patsubst %,libxt_%.so,${pfx_build_mod} ${pfx_symlinks})
|
2012-02-22 01:47:48 +00:00
|
|
|
pf4_solibs := $(patsubst %,libipt_%.so,${pf4_build_mod})
|
|
|
|
pf6_solibs := $(patsubst %,libip6t_%.so,${pf6_build_mod})
|
2013-03-06 17:05:34 +00:00
|
|
|
@@ -59,11 +74,11 @@
|
|
|
|
#
|
|
|
|
targets := libext.a libext4.a libext6.a matches.man targets.man
|
2012-02-22 01:47:48 +00:00
|
|
|
targets_install :=
|
2013-03-06 17:05:34 +00:00
|
|
|
-@ENABLE_STATIC_TRUE@ libext_objs := ${pfx_objs}
|
|
|
|
-@ENABLE_STATIC_TRUE@ libext4_objs := ${pf4_objs}
|
|
|
|
-@ENABLE_STATIC_TRUE@ libext6_objs := ${pf6_objs}
|
2012-02-22 01:47:48 +00:00
|
|
|
-@ENABLE_STATIC_FALSE@ targets += ${pfx_solibs} ${pf4_solibs} ${pf6_solibs}
|
|
|
|
-@ENABLE_STATIC_FALSE@ targets_install += ${pfx_solibs} ${pf4_solibs} ${pf6_solibs}
|
2013-03-06 17:05:34 +00:00
|
|
|
+libext_objs := ${pfx_objs}
|
|
|
|
+libext4_objs := ${pf4_objs}
|
|
|
|
+libext6_objs := ${pf6_objs}
|
2012-02-22 01:47:48 +00:00
|
|
|
+targets += ${pfx_solibs} ${pf4_solibs} ${pf6_solibs}
|
2012-06-07 12:24:37 +00:00
|
|
|
+targets_install := $(strip ${targets_install} ${pfx_solibs} ${pf4_solibs} ${pf6_solibs})
|
2012-02-22 01:47:48 +00:00
|
|
|
|
|
|
|
.SECONDARY:
|
|
|
|
|
2013-03-06 17:05:34 +00:00
|
|
|
@@ -128,9 +143,9 @@
|
2012-02-22 01:47:48 +00:00
|
|
|
libext6.a: initext6.o ${libext6_objs}
|
|
|
|
${AM_VERBOSE_AR} ${AR} crs $@ $^;
|
|
|
|
|
2013-03-06 17:05:34 +00:00
|
|
|
-initext_func := $(addprefix xt_,${pfx_build_mod})
|
|
|
|
-initext4_func := $(addprefix ipt_,${pf4_build_mod})
|
|
|
|
-initext6_func := $(addprefix ip6t_,${pf6_build_mod})
|
|
|
|
+initext_func := $(addprefix xt_,${pfx_build_static})
|
|
|
|
+initext4_func := $(addprefix ipt_,${pf4_build_static})
|
|
|
|
+initext6_func := $(addprefix ip6t_,${pf6_build_static})
|
2012-02-22 01:47:48 +00:00
|
|
|
|
2013-03-06 17:05:34 +00:00
|
|
|
.initext.dd: FORCE
|
2012-02-22 01:47:48 +00:00
|
|
|
@echo "${initext_func}" >$@.tmp; \
|