File symvers.diff of Package nx-libs
From: Jan Engelhardt <jengelh@inai.de>
Date: 2013-03-01 14:56:31.217818512 +0100
Upstream: no
Use symbol versioning to tag x2go libraries as such. This is used for
ensuring the x2go binaries explicitly require a symbol that is
different from those that the old Nomachine NX provides.
---
nxcomp/src/Makefile.am | 1 +
nxcompshad/src/Makefile.am | 1 +
x2go.map | 4 ++++
3 files changed, 6 insertions(+)
Index: nx-libs-3.5.99.22/nxcomp/src/Makefile.am
===================================================================
--- nx-libs-3.5.99.22.orig/nxcomp/src/Makefile.am
+++ nx-libs-3.5.99.22/nxcomp/src/Makefile.am
@@ -138,6 +138,7 @@ AM_CPPFLAGS = \
libXcomp_la_LDFLAGS = \
-version-number @LT_COMP_VERSION@ \
-no-undefined \
+ -Wl,--version-script=${top_srcdir}/../x2go.map \
@PTHREAD_LIBS@ \
$(PTHREAD_CFLAGS) \
$(NULL)
Index: nx-libs-3.5.99.22/nxcompshad/src/Makefile.am
===================================================================
--- nx-libs-3.5.99.22.orig/nxcompshad/src/Makefile.am
+++ nx-libs-3.5.99.22/nxcompshad/src/Makefile.am
@@ -39,6 +39,7 @@ AM_CPPFLAGS = \
libXcompshad_la_LDFLAGS = \
-version-number @LT_COMPSHAD_VERSION@ -no-undefined \
+ -Wl,--version-script=${top_srcdir}/../x2go.map \
-R '$(libdir)/nx/X11' \
$(NULL)
Index: nx-libs-3.5.99.22/x2go.map
===================================================================
--- /dev/null
+++ nx-libs-3.5.99.22/x2go.map
@@ -0,0 +1,4 @@
+X2GO {
+global:
+ *;
+};