[Mesa-dev] [PATCH 09/16] targets/gbm: add version-script to limit exported symbols

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


Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
---
 src/gallium/targets/gbm/Makefile.am | 1 +
 src/gallium/targets/gbm/gbm.sym     | 6 ++++++
 2 files changed, 7 insertions(+)
 create mode 100644 src/gallium/targets/gbm/gbm.sym

diff --git a/src/gallium/targets/gbm/Makefile.am b/src/gallium/targets/gbm/Makefile.am
index 5a37b65..51887d3 100644
--- a/src/gallium/targets/gbm/Makefile.am
+++ b/src/gallium/targets/gbm/Makefile.am
@@ -67,6 +67,7 @@ gbm_gallium_drm_la_LDFLAGS = \
 	-module \
 	-no-undefined \
 	-avoid-version \
+	-Wl,--version-script=$(top_srcdir)/src/gallium/targets/gbm/gbm.sym \
 	$(GC_SECTIONS) \
 	-Wl,--no-undefined
 
diff --git a/src/gallium/targets/gbm/gbm.sym b/src/gallium/targets/gbm/gbm.sym
new file mode 100644
index 0000000..d5fa0b9
--- /dev/null
+++ b/src/gallium/targets/gbm/gbm.sym
@@ -0,0 +1,6 @@
+{
+	global:
+		gbm_backend;
+	local:
+		*;
+};
-- 
1.9.1



More information about the mesa-dev mailing list