summaryrefslogtreecommitdiffstats
path: root/extensions/libxt_TEE.c
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@medozas.de>2010-08-03 19:58:38 +0200
committerJan Engelhardt <jengelh@medozas.de>2010-08-03 19:58:38 +0200
commit0428e5a6541c3f5eaaf683d8da9ea60c44eac4c7 (patch)
tree12ecded34ed22c763cfe63f1156174583d1cb4eb /extensions/libxt_TEE.c
parent371cea299f0b2eb100b9fc9fb99089640d2d606f (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>
Diffstat (limited to 'extensions/libxt_TEE.c')
-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);