From a8284c57f90a27f6b6655d8d1adebc33d53a38a9 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Thu, 13 Oct 2016 11:54:44 +0200 Subject: [PATCH] tui,cli/build: add linker version script for nmcli and nmtui --- clients/Makefile.am | 3 +++ clients/cli/Makefile.am | 3 +++ clients/tui/Makefile.am | 3 +++ 3 files changed, 9 insertions(+) diff --git a/clients/Makefile.am b/clients/Makefile.am index 4a526a659..46cb1d1e0 100644 --- a/clients/Makefile.am +++ b/clients/Makefile.am @@ -17,6 +17,9 @@ nm_online_CPPFLAGS = \ -DG_LOG_DOMAIN=\""nm-online"\" \ $(AM_CPPFLAGS) +nm_online_LDFLAGS = \ + -Wl,--version-script="$(top_srcdir)/linker-script-binary.ver" + nm_online_LDADD = \ $(top_builddir)/libnm/libnm.la \ $(GLIB_LIBS) diff --git a/clients/cli/Makefile.am b/clients/cli/Makefile.am index 7edbefad3..deb8159cb 100644 --- a/clients/cli/Makefile.am +++ b/clients/cli/Makefile.am @@ -54,6 +54,9 @@ nmcli_SOURCES += $(srcdir)/../common/nm-polkit-listener.c $(srcdir)/../common/nm nmcli_LDADD += $(POLKIT_LIBS) endif +nmcli_LDFLAGS = \ + -Wl,--version-script="$(top_srcdir)/linker-script-binary.ver" + if BUILD_SETTING_DOCS settings-docs.c: settings-docs.xsl $(top_builddir)/libnm/nm-property-docs.xml $(AM_V_GEN) xsltproc --output $@ $^ diff --git a/clients/tui/Makefile.am b/clients/tui/Makefile.am index 30ed9dde3..1fe2ec451 100644 --- a/clients/tui/Makefile.am +++ b/clients/tui/Makefile.am @@ -119,6 +119,9 @@ nmtui_SOURCES = \ $(srcdir)/../common/nm-vpn-helpers.h \ $(NULL) +nmtui_LDFLAGS = \ + -Wl,--version-script="$(top_srcdir)/linker-script-binary.ver" + nmtui_LDADD = \ $(top_builddir)/libnm/libnm.la \ $(builddir)/newt/libnmt-newt.a \