Mesa (master): scons: Fix sunos5 build.

Vinson Lee vlee at kemper.freedesktop.org
Wed Jul 28 01:14:16 UTC 2010


Module: Mesa
Branch: master
Commit: b172aebfdf288d3487876f7cb01c62582920d4c2
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=b172aebfdf288d3487876f7cb01c62582920d4c2

Author: Vinson Lee <vlee at vmware.com>
Date:   Tue Jul 27 18:13:47 2010 -0700

scons: Fix sunos5 build.

---

 src/gallium/tests/graw/SConscript |    3 +++
 src/gallium/tests/unit/SConscript |    3 +++
 2 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/gallium/tests/graw/SConscript b/src/gallium/tests/graw/SConscript
index 6112173..7e39ec2 100644
--- a/src/gallium/tests/graw/SConscript
+++ b/src/gallium/tests/graw/SConscript
@@ -11,6 +11,9 @@ env = env.Clone()
 env.Prepend(LIBPATH = [graw.dir])
 env.Prepend(LIBS = ['graw'] + gallium)
 
+if platform == 'sunos5':
+    env.Append(LIBS = ['m'])
+
 progs = [
     'clear',
     'tri',
diff --git a/src/gallium/tests/unit/SConscript b/src/gallium/tests/unit/SConscript
index 8a9f350..a200123 100644
--- a/src/gallium/tests/unit/SConscript
+++ b/src/gallium/tests/unit/SConscript
@@ -4,6 +4,9 @@ env = env.Clone()
 
 env.Prepend(LIBS = [gallium])
 
+if platform == 'sunos5':
+    env.Append(LIBS = ['m'])
+
 progs = [
     'pipe_barrier_test',
     'u_cache_test',




More information about the mesa-commit mailing list