]> git.ipfire.org Git - thirdparty/iptables.git/commit
build: resolve link failure for ip6t_NETMAP
authorJan Engelhardt <jengelh@inai.de>
Tue, 1 Jan 2013 22:47:51 +0000 (22:47 +0000)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 2 Jan 2013 21:46:45 +0000 (22:46 +0100)
commit68e77a26111ee6b8f10c735a76891a7de6d57ee6
tree8636162a298901bf30ce03f44ae851b8fc573388
parenteec83c7ce4351359cae797840d63cf4ef2809c95
build: resolve link failure for ip6t_NETMAP

Link stage of libip6t_NETMAP failed since recently.

  CCLD     libip6t_NETMAP.so
/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld:
cannot find -lip6tc

libip6t_NETMAP.c uses the "ipv6_prefix_length" function from
libip6tc.so; "-lip6tc" is used in the Makefile, but, the directory to
it is not specified.

Why does the link succeed for some people? Because
/usr/lib(64)/libip6tc.so satisfies -lip6tc, but not all environments,
especially those without iptables development files, have that file,
hence this link error can happen.

By suggestion of Mike Frysinger, this patch uses libtool to produce
and link the plugins.

Signed-off-by: Jan Engelhardt <jengelh@inai.de>
Acked-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
extensions/GNUmakefile.in