diff options
author | Neutron Soutmun <neo.neutron@gmail.com> | 2012-05-10 08:05:53 +0200 |
---|---|---|
committer | Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | 2012-05-10 08:05:53 +0200 |
commit | 2da431d3685c65d4355d387e213a3cd39d5b59f3 (patch) | |
tree | ef3fce367aa55aaae55a8b31a2782775a1adffcb /src | |
parent | f65b878e52494662fbb648132898575071bed75d (diff) |
Add dynamic module support to ipset userspace tool
The patch adds supporting dynamic modules for the set types to ipset
userspace tool. The dynamic module support can be enabled by the
--enable-settype-modules of "configure". The list of set types to
be compiled as dynamic modules can be specified in the
--with-settype-modules-list option. Example
--enable-settype-modules \
--with-settype-modules-list="ipset_hash_ip ipset_hash_ipport"
The keyword "all" can be used to compile all set types as dynamic modules.
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile.am | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index e3f6549..fcc4621 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -3,7 +3,14 @@ include $(top_srcdir)/Make_global.am sbin_PROGRAMS = ipset ipset_SOURCES = ipset.c ui.c ipset_LDADD = ../lib/libipset.la + +if ENABLE_SETTYPE_MODULES +AM_LDFLAGS = -shared +else +if ENABLE_STATIC AM_LDFLAGS = -static +endif +endif dist_man_MANS = ipset.8 |