Mesa (9.0): scons: Add default libraries to Solaris build.

Brian Paul brianp at kemper.freedesktop.org
Fri Aug 31 14:25:52 UTC 2012


Module: Mesa
Branch: 9.0
Commit: 7b676fd738691dba283fb17626026774b790cc0d
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=7b676fd738691dba283fb17626026774b790cc0d

Author: Vinson Lee <vlee at freedesktop.org>
Date:   Wed Aug 29 23:16:44 2012 -0700

scons: Add default libraries to Solaris build.

Fixes SCons build on Solaris.

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

---

 scons/gallium.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/scons/gallium.py b/scons/gallium.py
index 8fc17b3..dfed20f 100755
--- a/scons/gallium.py
+++ b/scons/gallium.py
@@ -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)
 




More information about the mesa-commit mailing list