summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@medozas.de>2010-08-06 15:24:41 +0200
committerPatrick McHardy <kaber@trash.net>2010-08-06 15:24:41 +0200
commit351989f2aa930d5b61b76a5b235790e9b5adce99 (patch)
tree6cc123ac0fcf1a2b753ec79ce4cf6995e161dcc0
parentd8b511ed36f00280dd141e59c08874c7fb116504 (diff)
build: fix static linking
Gabor Z. Papp noted this link-time error when configuring with --enable-static: extensions/libext4.a(initext4.o): In function "init_extensions": extensions/initext4.c:144: undefined reference to "libxt_IDLETIMER_init" extensions/initext4.c:145: undefined reference to "libxt_TEE_init" Indeed, since the two modules did not use our special macro "_init" (which expands to libxt_foo_init), initext4.c could not find them by that name. Correct this. References: http://marc.info/?l=netfilter&m=128085480927924&w=2 Signed-off-by: Jan Engelhardt <jengelh@medozas.de> Signed-off-by: Patrick McHardy <kaber@trash.net>
-rw-r--r--extensions/libxt_TEE.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/libxt_TEE.c b/extensions/libxt_TEE.c
index f8e7fd17..e4c0607e 100644
--- a/extensions/libxt_TEE.c
+++ b/extensions/libxt_TEE.c
@@ -195,7 +195,7 @@ static struct xtables_target tee_tg6_reg = {
.extra_opts = tee_tg_opts,
};
-static __attribute__((constructor)) void tee_tg_ldr(void)
+void _init(void)
{
xtables_register_target(&tee_tg_reg);
xtables_register_target(&tee_tg6_reg);