[Mesa-dev] [PATCH 11/16] targets/egl-static: freshen up the version script

Emil Velikov emil.l.velikov at gmail.com
Fri Apr 4 18:47:00 PDT 2014


Namely drop the version/name tag of the exported symbol, and
rename the filename to egl.sym.

Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
---
 src/gallium/targets/egl-static/Makefile.am | 4 ++--
 src/gallium/targets/egl-static/egl.link    | 3 ---
 src/gallium/targets/egl-static/egl.sym     | 6 ++++++
 3 files changed, 8 insertions(+), 5 deletions(-)
 delete mode 100644 src/gallium/targets/egl-static/egl.link
 create mode 100644 src/gallium/targets/egl-static/egl.sym

diff --git a/src/gallium/targets/egl-static/Makefile.am b/src/gallium/targets/egl-static/Makefile.am
index a133cd1..afa835c 100644
--- a/src/gallium/targets/egl-static/Makefile.am
+++ b/src/gallium/targets/egl-static/Makefile.am
@@ -48,9 +48,9 @@ AM_LDFLAGS = \
 	-module \
 	-no-undefined \
 	-avoid-version \
+	-Wl,--version-script=$(top_srcdir)/src/gallium/targets/egl-static/egl.sym
 	$(GC_SECTIONS) \
-	-Wl,--no-undefined \
-	-Wl,--version-script=$(top_srcdir)/src/gallium/targets/egl-static/egl.link
+	-Wl,--no-undefined
 
 egldir = $(EGL_DRIVER_INSTALL_DIR)
 egl_LTLIBRARIES = egl_gallium.la
diff --git a/src/gallium/targets/egl-static/egl.link b/src/gallium/targets/egl-static/egl.link
deleted file mode 100644
index 5be917f..0000000
--- a/src/gallium/targets/egl-static/egl.link
+++ /dev/null
@@ -1,3 +0,0 @@
-VERSION {
-	global: _eglMain; local: *;
-};
diff --git a/src/gallium/targets/egl-static/egl.sym b/src/gallium/targets/egl-static/egl.sym
new file mode 100644
index 0000000..3fe7d67
--- /dev/null
+++ b/src/gallium/targets/egl-static/egl.sym
@@ -0,0 +1,6 @@
+{
+	global:
+		_eglMain;
+	local:
+		*;
+};
-- 
1.9.1



More information about the mesa-dev mailing list