-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Kevin H. Hobbs wrote: > How is symbol visibility set up in mesa's shared objects? > > When I do : > > ./autogen.sh --with-driver=xlib --disable-gallium --enable-debug > > I get for example : > > $ nm lib/libGL.so | grep glDepthFunc > 000000000020ce30 T glDepthFunc > $ nm lib/libOSMesa.so | grep glDepthFunc > 00000000001ca760 T glDepthFunc > > As I understand it there is no way for these two libraries to be linked > by the same application. > > Is the visibility for glDepthFunc set in include/GL/gl.h with : > > define GLAPI __attribute__((visibility("default"))) > > and : > > > GLAPI void GLAPIENTRY glDepthFunc( GLenum func ); > > Is there no way to use say mklib's EXPORTS --version-script options to > get only the right things in the right libraries?
Uh.. You can't link two different OpenGL libraries any more than you can link two different C libraries (say, glibc and ulibc) that both export printf. glDepthFunc is part of the public interface of the library. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkxjCjEACgkQX1gOwKyEAw+IbACfV6Tfh/OMD8bjW5pVL4OKrElX keEAoJyW8O3yscD3U2/p8+YPX60igkvT =ZM2x -----END PGP SIGNATURE----- _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev