Mesa (master): scons: Link against librt

Jose Fonseca jrfonseca at kemper.freedesktop.org
Tue Dec 4 19:37:50 UTC 2012


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

Author: José Fonseca <jfonseca at vmware.com>
Date:   Tue Dec  4 19:36:52 2012 +0000

scons: Link against librt

Fixes missing clock_gettime symbol.

---

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

diff --git a/scons/gallium.py b/scons/gallium.py
index e9496a8..66ccaea 100755
--- a/scons/gallium.py
+++ b/scons/gallium.py
@@ -500,6 +500,8 @@ def generate(env):
     libs = []
     if env['platform'] in ('darwin', 'freebsd', 'linux', 'posix', 'sunos'):
         libs += ['m', 'pthread', 'dl']
+    if env['platform'] in 'linux':
+        libs += ['rt']
     env.Append(LIBS = libs)
 
     # OpenMP




More information about the mesa-commit mailing list