[network-manager-openconnect/th/vpn-editor-split-bgo767690: 10/14] properties: add linker version script to libnm plugin



commit 6fceeb3f1b279ffd9bcdc3bf5e92cbbca146c06b
Author: Thomas Haller <thaller redhat com>
Date:   Tue Jun 14 23:33:47 2016 +0200

    properties: add linker version script to libnm plugin

 properties/Makefile.am                      |   13 +++++++++----
 properties/libnm-openconnect-properties.ver |    6 ++++++
 properties/libnm-vpn-plugin-openconnect.ver |    6 ++++++
 properties/nm-openconnect.c                 |    4 ----
 4 files changed, 21 insertions(+), 8 deletions(-)
---
diff --git a/properties/Makefile.am b/properties/Makefile.am
index a7b2d8e..1d70913 100644
--- a/properties/Makefile.am
+++ b/properties/Makefile.am
@@ -39,7 +39,8 @@ libnm_vpn_plugin_openconnect_la_LIBADD = \
        $(OPENCONNECT_LIBS)
 
 libnm_vpn_plugin_openconnect_la_LDFLAGS = \
-       -avoid-version
+       -avoid-version \
+       -Wl,--version-script="$(srcdir)/libnm-vpn-plugin-openconnect.ver"
 
 ###############################################################################
 
@@ -58,11 +59,15 @@ libnm_openconnect_properties_la_LIBADD = \
        $(OPENCONNECT_LIBS)
 
 libnm_openconnect_properties_la_LDFLAGS = \
-       -avoid-version
+       -avoid-version \
+       -Wl,--version-script="$(srcdir)/libnm-openconnect-properties.ver"
 
 ###############################################################################
 
 CLEANFILES = *.bak *~
 
-EXTRA_DIST =                            \
-       $(ui_DATA)
+EXTRA_DIST = \
+       $(ui_DATA) \
+       libnm-openconnect-properties.ver \
+       libnm-vpn-plugin-openconnect.ver \
+       $(NULL)
diff --git a/properties/libnm-openconnect-properties.ver b/properties/libnm-openconnect-properties.ver
new file mode 100644
index 0000000..271c506
--- /dev/null
+++ b/properties/libnm-openconnect-properties.ver
@@ -0,0 +1,6 @@
+{
+global:
+       nm_vpn_plugin_ui_factory;
+local:
+       *;
+};
diff --git a/properties/libnm-vpn-plugin-openconnect.ver b/properties/libnm-vpn-plugin-openconnect.ver
new file mode 100644
index 0000000..92a7b14
--- /dev/null
+++ b/properties/libnm-vpn-plugin-openconnect.ver
@@ -0,0 +1,6 @@
+{
+global:
+       nm_vpn_editor_plugin_factory;
+local:
+       *;
+};
diff --git a/properties/nm-openconnect.c b/properties/nm-openconnect.c
index 7551785..4cd2b04 100644
--- a/properties/nm-openconnect.c
+++ b/properties/nm-openconnect.c
@@ -1,9 +1,5 @@
 /* -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
 /***************************************************************************
- * CVSID: $Id$
- *
- * nm-openconnect.c : GNOME UI dialogs for configuring openconnect VPN connections
- *
  * Copyright (C) 2005 David Zeuthen, <davidz redhat com>
  * Copyright (C) 2005 - 2008 Dan Williams, <dcbw redhat com>
  * Copyright (C) 2005 - 2011 Red Hat, Inc.


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