aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/targets
diff options
context:
space:
mode:
authorEmil Velikov <[email protected]>2014-05-20 18:07:00 -0600
committerBrian Paul <[email protected]>2014-05-23 07:40:24 -0600
commitd4c3968c25885f6eb53dee4cc0c60d8d3f8fec32 (patch)
tree537777928e958589238fb244a129297fff447288 /src/gallium/targets
parent172ef0c5a5a97c211702eb4033eeaac20993350e (diff)
targets/osmesa: limit the amount of exported symbols
src/gallium/targets/osmesa/Makefile.am | 1 + src/gallium/targets/osmesa/osmesa.sym | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 src/gallium/targets/osmesa/osmesa.sym
Diffstat (limited to 'src/gallium/targets')
-rw-r--r--src/gallium/targets/osmesa/Makefile.am1
-rw-r--r--src/gallium/targets/osmesa/osmesa.sym18
2 files changed, 19 insertions, 0 deletions
diff --git a/src/gallium/targets/osmesa/Makefile.am b/src/gallium/targets/osmesa/Makefile.am
index 067f9808b7a..0ec8a2613d4 100644
--- a/src/gallium/targets/osmesa/Makefile.am
+++ b/src/gallium/targets/osmesa/Makefile.am
@@ -45,6 +45,7 @@ lib@OSMESA_LIB@_la_LDFLAGS = \
-module \
-no-undefined \
-version-number @OSMESA_VERSION@ \
+ -Wl,--version-script=$(top_srcdir)/src/gallium/targets/osmesa/osmesa.sym \
$(GC_SECTIONS) \
$(LD_NO_UNDEFINED)
diff --git a/src/gallium/targets/osmesa/osmesa.sym b/src/gallium/targets/osmesa/osmesa.sym
new file mode 100644
index 00000000000..b8230e04fb4
--- /dev/null
+++ b/src/gallium/targets/osmesa/osmesa.sym
@@ -0,0 +1,18 @@
+{
+ global:
+ OSMesaColorClamp;
+ OSMesaCreateContext;
+ OSMesaCreateContextExt;
+ OSMesaDestroyContext;
+ OSMesaGetColorBuffer;
+ OSMesaGetCurrentContext;
+ OSMesaGetDepthBuffer;
+ OSMesaGetIntegerv;
+ OSMesaGetProcAddress;
+ OSMesaMakeCurrent;
+ OSMesaPixelStore;
+ OSMesaPostprocess;
+ gl*;
+ local:
+ *;
+};