summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPhil Oester <kernel@linuxace.com>2006-07-20 16:59:04 +0000
committerPatrick McHardy <kaber@trash.net>2006-07-20 16:59:04 +0000
commit7f5be628f66ec7b8b22e87ace39ee61213c6313b (patch)
tree35ec1fd4c324beceba628c2a3fdf1dfb500e60dd /include
parent5549ad0e7eac76922e727e61f425e1f1f02e380d (diff)
Use gcc to build shared objects (Phil Oester <kernel@linuxace.com>)
As suggested by Dmitry Levin and included in Fedora Core releases, use gcc instead of ld to link shared objects. Fedora rpm notes refer to this fixing a plugin problem, but does not offer specifics. But in any event, 'gcc -dumpspecs' does show gcc will pass a number of parameters which in theory it thinks are better. Compile tested both with and without NO_SHARED_LIBS. Closes bug #454.
Diffstat (limited to 'include')
-rw-r--r--include/iptables_common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/iptables_common.h b/include/iptables_common.h
index 64723c3c..e214d1fd 100644
--- a/include/iptables_common.h
+++ b/include/iptables_common.h
@@ -33,8 +33,10 @@ void exit_error(enum exittype, char *, ...)__attribute__((noreturn,
extern const char *program_name, *program_version;
extern char *lib_dir;
+#define _init __attribute__((constructor)) my_init
#ifdef NO_SHARED_LIBS
# ifdef _INIT
+# undef _init
# define _init _INIT
# endif
extern void init_extensions(void);