forked from pool/iptables
Jan Engelhardt
4bb32b41a9
OBS-URL: https://build.opensuse.org/package/show/security:netfilter/iptables?expand=0&rev=67
43 lines
1.4 KiB
Diff
43 lines
1.4 KiB
Diff
From 070e9ad8fe6380be3fe19924cd50619e540382d0 Mon Sep 17 00:00:00 2001
|
|
From: Jan Engelhardt <jengelh@inai.de>
|
|
Date: Sun, 2 Dec 2012 19:09:38 +0100
|
|
Subject: [PATCH] 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.
|
|
|
|
Signed-off-by: Jan Engelhardt <jengelh@inai.de>
|
|
---
|
|
extensions/GNUmakefile.in | 3 ++-
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/extensions/GNUmakefile.in b/extensions/GNUmakefile.in
|
|
index e71e3ff..68e0b9b 100644
|
|
--- a/extensions/GNUmakefile.in
|
|
+++ b/extensions/GNUmakefile.in
|
|
@@ -101,7 +101,8 @@ libxt_state.so: libxt_conntrack.so
|
|
ln -fs $< $@
|
|
|
|
# Need the LIBADDs in iptables/Makefile.am too for libxtables_la_LIBADD
|
|
-ip6t_NETMAP_LIBADD = -lip6tc
|
|
+ip6t_NETMAP_LIBADD = -L${top_builddir}/libiptc/.libs \
|
|
+ -L${top_builddir}/libiptc -lip6tc
|
|
xt_RATEEST_LIBADD = -lm
|
|
xt_statistic_LIBADD = -lm
|
|
|
|
--
|
|
1.7.10.4
|
|
|