* [PATCH] ipset tool: Fix link with libtool >= 2.4.4
@ 2016-01-06 23:21 Olivier Blin
2016-01-06 23:21 ` [PATCH] " Olivier Blin
2016-01-07 7:48 ` [PATCH] ipset tool: " Jozsef Kadlecsik
0 siblings, 2 replies; 5+ messages in thread
From: Olivier Blin @ 2016-01-06 23:21 UTC (permalink / raw)
To: netfilter-devel; +Cc: kadlec
Hi,
This is a simple patch to fix link of ipset with latest libtool
versions.
Cheers
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH] Fix link with libtool >= 2.4.4
2016-01-06 23:21 [PATCH] ipset tool: Fix link with libtool >= 2.4.4 Olivier Blin
@ 2016-01-06 23:21 ` Olivier Blin
2016-01-07 7:48 ` [PATCH] ipset tool: " Jozsef Kadlecsik
1 sibling, 0 replies; 5+ messages in thread
From: Olivier Blin @ 2016-01-06 23:21 UTC (permalink / raw)
To: netfilter-devel; +Cc: kadlec, Olivier Blin
As of libtool-2.4.4, -ldl is no longer prepended to LIBS.
Since types.c needs dlopen() and dlerror(), use LIBADD_DLOPEN, as
suggested in libtool-2.4.4 release notes.
---
lib/Makefile.am | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/Makefile.am b/lib/Makefile.am
index 36f60b0..4a376ca 100644
--- a/lib/Makefile.am
+++ b/lib/Makefile.am
@@ -24,7 +24,7 @@ lib_LTLIBRARIES = libipset.la
include $(top_srcdir)/lib/Make_extra.am
libipset_la_LDFLAGS = -Wl,--version-script=$(top_srcdir)/lib/libipset.map -version-info $(LIBVERSION)
-libipset_la_LIBADD = ${libmnl_LIBS} $(IPSET_SETTYPE_STATIC_OBJECTS)
+libipset_la_LIBADD = ${libmnl_LIBS} $(IPSET_SETTYPE_STATIC_OBJECTS) $(LIBADD_DLOPEN)
libipset_la_SOURCES = \
data.c \
errcode.c \
--
2.6.4
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] ipset tool: Fix link with libtool >= 2.4.4
2016-01-06 23:21 [PATCH] ipset tool: Fix link with libtool >= 2.4.4 Olivier Blin
2016-01-06 23:21 ` [PATCH] " Olivier Blin
@ 2016-01-07 7:48 ` Jozsef Kadlecsik
2016-01-07 12:36 ` Olivier Blin
1 sibling, 1 reply; 5+ messages in thread
From: Jozsef Kadlecsik @ 2016-01-07 7:48 UTC (permalink / raw)
To: Olivier Blin; +Cc: netfilter-devel
Hi,
On Thu, 7 Jan 2016, Olivier Blin wrote:
> This is a simple patch to fix link of ipset with latest libtool
> versions.
Is the patch compatible with non-latest libtool versions?
Best regards,
Jozsef
-
E-mail : kadlec@blackhole.kfki.hu, kadlecsik.jozsef@wigner.mta.hu
PGP key : http://www.kfki.hu/~kadlec/pgp_public_key.txt
Address : Wigner Research Centre for Physics, Hungarian Academy of Sciences
H-1525 Budapest 114, POB. 49, Hungary
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] ipset tool: Fix link with libtool >= 2.4.4
2016-01-07 7:48 ` [PATCH] ipset tool: " Jozsef Kadlecsik
@ 2016-01-07 12:36 ` Olivier Blin
2016-01-09 20:13 ` Kadlecsik József
0 siblings, 1 reply; 5+ messages in thread
From: Olivier Blin @ 2016-01-07 12:36 UTC (permalink / raw)
To: Jozsef Kadlecsik; +Cc: netfilter-devel
Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> writes:
> On Thu, 7 Jan 2016, Olivier Blin wrote:
>
>> This is a simple patch to fix link of ipset with latest libtool
>> versions.
>
> Is the patch compatible with non-latest libtool versions?
Hi Jozsef,
I have tested this with libtool 2.4.2 and 2.4.6 versions, ipset builds
fine with both.
The only downside is that -ldl is now passed twice with older libtool
versions, but this should not be a problem.
Thanks
--
Olivier Blin - blino
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] ipset tool: Fix link with libtool >= 2.4.4
2016-01-07 12:36 ` Olivier Blin
@ 2016-01-09 20:13 ` Kadlecsik József
0 siblings, 0 replies; 5+ messages in thread
From: Kadlecsik József @ 2016-01-09 20:13 UTC (permalink / raw)
To: Olivier Blin; +Cc: netfilter-devel
On Thu, 7 Jan 2016, Olivier Blin wrote:
> Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> writes:
>
> > On Thu, 7 Jan 2016, Olivier Blin wrote:
> >
> >> This is a simple patch to fix link of ipset with latest libtool
> >> versions.
> >
> > Is the patch compatible with non-latest libtool versions?
>
> I have tested this with libtool 2.4.2 and 2.4.6 versions, ipset builds
> fine with both.
>
> The only downside is that -ldl is now passed twice with older libtool
> versions, but this should not be a problem.
The patch is applied, thank you.
Best regards,
Jozsef
--
E-mail : kadlecsik.jozsef@wigner.mta.hu
PGP key: http://www.kfki.hu/~kadlec/pgp_public_key.txt
Address: Wigner Research Centre for Physics, Hungarian Academy of Sciences
H-1525 Budapest 114, POB. 49, Hungary
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2016-01-09 20:19 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-06 23:21 [PATCH] ipset tool: Fix link with libtool >= 2.4.4 Olivier Blin
2016-01-06 23:21 ` [PATCH] " Olivier Blin
2016-01-07 7:48 ` [PATCH] ipset tool: " Jozsef Kadlecsik
2016-01-07 12:36 ` Olivier Blin
2016-01-09 20:13 ` Kadlecsik József
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).