scons: Don't set visibility to hidden on Haiku
authorAlexander von Gluck IV <kallisti5@unixzen.com>
Mon, 16 Jan 2012 17:44:43 +0000 (17:44 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Tue, 17 Jan 2012 20:02:41 +0000 (20:02 +0000)
The Haiku swrast driver is out of tree.

scons/gallium.py

index 5a0c6fef13c175b0069afa3492ad93980e09a9cf..86adc3e6a265de7725e7e51505585f772c485214 100755 (executable)
@@ -350,7 +350,7 @@ def generate(env):
             ccflags += ['-m64']
             if platform == 'darwin':
                 ccflags += ['-fno-common']
-        if env['platform'] != 'windows':
+        if env['platform'] not in ('windows', 'haiku'):
             ccflags += ['-fvisibility=hidden']
         # See also:
         # - http://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html