Mesa (master): scons: Fix freebsd8 build.

Vinson Lee vlee at kemper.freedesktop.org
Thu Aug 12 01:57:59 UTC 2010


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

Author: Vinson Lee <vlee at vmware.com>
Date:   Wed Aug 11 18:57:27 2010 -0700

scons: Fix freebsd8 build.

---

 src/gallium/tests/graw/SConscript |    5 ++++-
 src/gallium/tests/unit/SConscript |    5 ++++-
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/src/gallium/tests/graw/SConscript b/src/gallium/tests/graw/SConscript
index 7e39ec2..860a17e 100644
--- a/src/gallium/tests/graw/SConscript
+++ b/src/gallium/tests/graw/SConscript
@@ -11,9 +11,12 @@ env = env.Clone()
 env.Prepend(LIBPATH = [graw.dir])
 env.Prepend(LIBS = ['graw'] + gallium)
 
-if platform == 'sunos5':
+if platform in ('freebsd8', 'sunos5'):
     env.Append(LIBS = ['m'])
 
+if platform == 'freebsd8':
+    env.Append(LIBS = ['pthread'])
+
 progs = [
     'clear',
     'tri',
diff --git a/src/gallium/tests/unit/SConscript b/src/gallium/tests/unit/SConscript
index a0ad58f..edc68e3 100644
--- a/src/gallium/tests/unit/SConscript
+++ b/src/gallium/tests/unit/SConscript
@@ -4,9 +4,12 @@ env = env.Clone()
 
 env.Prepend(LIBS = [gallium])
 
-if platform == 'sunos5':
+if platform in ('freebsd8', 'sunos5'):
     env.Append(LIBS = ['m'])
 
+if platform == 'freebsd8':
+    env.Append(LIBS = ['pthread'])
+
 progs = [
     'pipe_barrier_test',
     'u_cache_test',




More information about the mesa-commit mailing list