[Mesa-dev] Mesa symbol visibility

Kevin H. Hobbs hobbsk at ohiou.edu
Wed Aug 11 13:02:29 PDT 2010


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?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 253 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20100811/021609ef/attachment-0001.pgp>


More information about the mesa-dev mailing list