diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2004-11-27 17:32:03 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2004-11-27 17:32:03 +0000 |
commit | 91d09a9ffad4ed838d7604ca39d301844c17812f (patch) | |
tree | 8a7a93aa8a7d546052df08ff836aa6dce0acd722 /src/mesa/glapi/gl_x86_asm.py | |
parent | 819b5195346c2f3661d5c6643feb6622a112c8ab (diff) |
Set symbol visibility to 'default', if supported by gcc.
Diffstat (limited to 'src/mesa/glapi/gl_x86_asm.py')
-rw-r--r-- | src/mesa/glapi/gl_x86_asm.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mesa/glapi/gl_x86_asm.py b/src/mesa/glapi/gl_x86_asm.py index e79a5b8b70..47cef80547 100644 --- a/src/mesa/glapi/gl_x86_asm.py +++ b/src/mesa/glapi/gl_x86_asm.py @@ -59,6 +59,13 @@ class PrintGenericStubs(gl_XML.FilterGLAPISpecBase): print '#include "assyntax.h"' print '#include "glapioffsets.h"' print '' + print "/* If we build with gcc's -fvisibility=hidden flag, we'll need to change" + print "* the symbol visibility mode to 'default'." + print '*/' + print '#if defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__) >= 303' + print '#pragma GCC visibility push(default)' + print '#endif' + print '' print '#ifndef __WIN32__' print '' print '#if defined(STDCALL_API)' |