From: Vinson Lee Date: Thu, 12 Aug 2010 01:57:27 +0000 (-0700) Subject: scons: Fix freebsd8 build. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e1bb9ee7a6b7dea0e0388ffb375447ad40f38499;p=mesa.git scons: Fix freebsd8 build. --- diff --git a/src/gallium/tests/graw/SConscript b/src/gallium/tests/graw/SConscript index 7e39ec21a41..860a17e13e7 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 a0ad58ffa2e..edc68e34d9e 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',