summaryrefslogtreecommitdiff
path: root/scons/gallium.py
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2012-12-04 19:36:52 +0000
committerJosé Fonseca <jfonseca@vmware.com>2012-12-04 19:37:21 +0000
commited4dfaa164907a5d706bb351295eb47e45d17473 (patch)
tree89f6d2b83514c21ad9ed9c430b6fe532894d1e38 /scons/gallium.py
parentde76101672a83fd7fda8033b2d5ec8c5b756707a (diff)
scons: Link against librt
Fixes missing clock_gettime symbol.
Diffstat (limited to 'scons/gallium.py')
-rwxr-xr-xscons/gallium.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/scons/gallium.py b/scons/gallium.py
index e9496a8d5d..66ccaea735 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