The original patch below works for me.

Tested-by: Brian Paul <bri...@vmware.com>


On 05/20/2014 06:07 PM, Emil Velikov wrote:
Just realised that I had forgotten about mangled gl. So this patch will need
an extra line in the global symbols list.

    mgl*;

I would still appreciate if someone familiar with OSMesa's api can take a look

Cheers,
Emil

On 09/05/14 18:13, Emil Velikov wrote:
ping,

Brian, you seem to be the only person that came near osmesa over the last few
years. Can you take a look at the patch below?

Cheers
Emil

On 02/05/14 22:02, Emil Velikov wrote:
Explicitly list all the OSMesa* symbols and wildcast the gl*
ones.

Cc: Brian Paul <bri...@vmware.com>
Signed-off-by: Emil Velikov <emil.l.veli...@gmail.com>
---
  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

diff --git a/src/gallium/targets/osmesa/Makefile.am 
b/src/gallium/targets/osmesa/Makefile.am
index 067f980..0ec8a26 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 0000000..b8230e0
--- /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:
+               *;
+};



_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to