From ed4dfaa164907a5d706bb351295eb47e45d17473 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Fonseca?= Date: Tue, 4 Dec 2012 19:36:52 +0000 Subject: [PATCH] scons: Link against librt Fixes missing clock_gettime symbol. --- scons/gallium.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scons/gallium.py b/scons/gallium.py index e9496a8d5d8..66ccaea7359 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 -- 2.30.2