From 0428e5a6541c3f5eaaf683d8da9ea60c44eac4c7 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Tue, 3 Aug 2010 19:58:38 +0200 Subject: 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 --- extensions/libxt_TEE.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'extensions/libxt_TEE.c') 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); -- cgit v1.2.3