From 0b58eea1317aadcb80ab630b0e08257e51b67754 Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Sun, 14 Jul 2013 16:32:16 -0400 Subject: [PATCH] scons: link bindings to rt on linux --- bindings/python/build.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bindings/python/build.py b/bindings/python/build.py index c450264f8..bf9b1b2f1 100644 --- a/bindings/python/build.py +++ b/bindings/python/build.py @@ -53,6 +53,9 @@ link_all_libs = env['LINKING'] == 'static' or env['RUNTIME_LINK'] == 'static' or if link_all_libs: py_env.AppendUnique(LIBS=env['LIBMAPNIK_LIBS']) +if env['RUNTIME_LINK'] == 'static' and env['PLATFORM'] == 'Linux': + py_env.AppendUnique(LIBS='rt') + # TODO - do solaris/fedora need direct linking too? if env['PLATFORM'] == 'Darwin': ##### Python linking on OS X is tricky ###