summaryrefslogtreecommitdiff
path: root/lib/mesa/src/gallium/winsys/svga
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2015-11-22 02:43:16 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2015-11-22 02:43:16 +0000
commitfd509fe9c794932f461419091dcc98c91f443a3e (patch)
treec6541c3a3da8255446ca8bc65fa4f9a0b4a63863 /lib/mesa/src/gallium/winsys/svga
parent13a2c6cc687d73ecdd9289a961daaf0cf0f871d4 (diff)
import Mesa 11.0.6
Diffstat (limited to 'lib/mesa/src/gallium/winsys/svga')
-rw-r--r--lib/mesa/src/gallium/winsys/svga/drm/SConscript9
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',