Re: [PATCH][PING] Hide private symbols in libnfnetlink

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thursday 2018-05-03 17:03, Yuri Gribov wrote:

>Hi all,
>
>Here's the updated version of the patch.
>
>diff --git a/src/Makefile.am b/src/Makefile.am
>index d0098cc..d91c9f7 100644
>--- a/src/Makefile.am
>+++ b/src/Makefile.am
>@@ -3,7 +3,8 @@ include $(top_srcdir)/Make_global.am
> lib_LTLIBRARIES = libnfnetlink.la
> 
> libnfnetlink_la_LDFLAGS = -Wc,-nostartfiles	\
>-			  -version-info $(LIBVERSION)
>+			  -version-info $(LIBVERSION) \
>+			  -Wl,--version-script=$(srcdir)/nfnl.version
> libnfnetlink_la_SOURCES = libnfnetlink.c iftable.c rtnl.c
> 
> noinst_HEADERS = iftable.h rtnl.h

Another additional line will be needed,

	EXTRA_libnfnetlink_la_DEPENDENCIES = nfnl.version

otherwise the linker won't rerun if the .version file gets modified.
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux