scons: Add default libraries to Solaris build.
authorVinson Lee <vlee@freedesktop.org>
Thu, 30 Aug 2012 06:16:44 +0000 (23:16 -0700)
committerBrian Paul <brianp@vmware.com>
Fri, 31 Aug 2012 14:24:38 +0000 (08:24 -0600)
Fixes SCons build on Solaris.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=54293
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Signed-off-by: Brian Paul <brianp@vmware.com>
scons/gallium.py

index 8fc17b3fa4a0e354803e0e0d1c7b7b5fcca44522..dfed20f9e199faba2d53b8e4157bb8ad67fcb415 100755 (executable)
@@ -498,7 +498,8 @@ def generate(env):
 
     # Default libs
     libs = []
-    if env['platform'] in ('posix', 'linux', 'freebsd', 'darwin'):
+    print env['platform']
+    if env['platform'] in ('darwin', 'freebsd', 'linux', 'posix', 'sunos'):
         libs += ['m', 'pthread', 'dl']
     env.Append(LIBS = libs)