diff options
author | Brian Paul <[email protected]> | 2004-11-27 17:32:03 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2004-11-27 17:32:03 +0000 |
commit | 91d09a9ffad4ed838d7604ca39d301844c17812f (patch) | |
tree | 8a7a93aa8a7d546052df08ff836aa6dce0acd722 /src/mesa/x86/glapi_x86.S | |
parent | 819b5195346c2f3661d5c6643feb6622a112c8ab (diff) |
Set symbol visibility to 'default', if supported by gcc.
Diffstat (limited to 'src/mesa/x86/glapi_x86.S')
-rw-r--r-- | src/mesa/x86/glapi_x86.S | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mesa/x86/glapi_x86.S b/src/mesa/x86/glapi_x86.S index 44fe374295c..85ed65ed962 100644 --- a/src/mesa/x86/glapi_x86.S +++ b/src/mesa/x86/glapi_x86.S @@ -29,6 +29,13 @@ #include "assyntax.h" #include "glapioffsets.h" +/* If we build with gcc's -fvisibility=hidden flag, we'll need to change +* the symbol visibility mode to 'default'. +*/ +#if defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__) >= 303 +#pragma GCC visibility push(default) +#endif + #ifndef __WIN32__ #if defined(STDCALL_API) |