]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
build: explicitly pass --version-script to linker
authorSam James <sam@gentoo.org>
Thu, 24 Feb 2022 19:45:43 +0000 (19:45 +0000)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 24 Feb 2022 23:36:04 +0000 (00:36 +0100)
--version-script is a linker option, so let's use -Wl, so that
libtool handles it properly. It seems like the previous method gets silently
ignored with GNU libtool in some cases(?) and downstream in Gentoo,
we had to apply this change to make the build work with slibtool anyway.

But it's indeed correct in any case, so let's swap.

Signed-off-by: Sam James <sam@gentoo.org>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/Makefile.am

index 4cfba0af8bfa3d2aa154a62644ac637cb327a392..e96cee77691b5314e763d59bd4a02caa50427c87 100644 (file)
@@ -91,7 +91,7 @@ libparser_la_CFLAGS = ${AM_CFLAGS} \
 
 libnftables_la_LIBADD = ${LIBMNL_LIBS} ${LIBNFTNL_LIBS} libparser.la
 libnftables_la_LDFLAGS = -version-info ${libnftables_LIBVERSION} \
-                        --version-script=$(srcdir)/libnftables.map
+                        -Wl,--version-script=$(srcdir)/libnftables.map
 
 if BUILD_MINIGMP
 noinst_LTLIBRARIES += libminigmp.la