diff options
Diffstat (limited to 'lib/mesa/src/gallium/winsys/svga')
-rw-r--r-- | lib/mesa/src/gallium/winsys/svga/drm/SConscript | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/mesa/src/gallium/winsys/svga/drm/SConscript b/lib/mesa/src/gallium/winsys/svga/drm/SConscript index 739896859..25850531d 100644 --- a/lib/mesa/src/gallium/winsys/svga/drm/SConscript +++ b/lib/mesa/src/gallium/winsys/svga/drm/SConscript @@ -4,9 +4,12 @@ env = env.Clone() env.PkgUseModules('DRM') -env.Append(CPPDEFINES = [ - '-D_FILE_OFFSET_BITS=64', -]) +if env['gcc'] or env['clang'] or env['icc']: + env.Append(CCFLAGS = ['-fvisibility=hidden']) + env.Append(CPPDEFINES = [ + 'HAVE_STDINT_H', + '-D_FILE_OFFSET_BITS=64', + ]) env.Prepend(CPPPATH = [ '#/src/gallium/drivers/svga', |