targets/osmesa: limit the amount of exported symbols
authorEmil Velikov <emil.l.velikov@gmail.com>
Wed, 21 May 2014 00:07:00 +0000 (18:07 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 23 May 2014 13:40:24 +0000 (07:40 -0600)
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

src/gallium/targets/osmesa/Makefile.am
src/gallium/targets/osmesa/osmesa.sym [new file with mode: 0644]

index 067f980..0ec8a26 100644 (file)
@@ -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 (file)
index 0000000..b8230e0
--- /dev/null
@@ -0,0 +1,18 @@
+{
+       global:
+               OSMesaColorClamp;
+               OSMesaCreateContext;
+               OSMesaCreateContextExt;
+               OSMesaDestroyContext;
+               OSMesaGetColorBuffer;
+               OSMesaGetCurrentContext;
+               OSMesaGetDepthBuffer;
+               OSMesaGetIntegerv;
+               OSMesaGetProcAddress;
+               OSMesaMakeCurrent;
+               OSMesaPixelStore;
+               OSMesaPostprocess;
+               gl*;
+       local:
+               *;
+};