From 7115edc2ba957c86e427dc7f828c28db727fc8a6 Mon Sep 17 00:00:00 2001 From: Vladimir Prus Date: Mon, 24 Jul 2006 06:14:29 +0000 Subject: [PATCH] Link to rt on Sun [SVN r34693] --- src/tools/python.jam | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/tools/python.jam b/src/tools/python.jam index 8025b3570..b76947ba8 100644 --- a/src/tools/python.jam +++ b/src/tools/python.jam @@ -152,6 +152,18 @@ rule init-unix ( version ? : root ? : includes ? : libraries ? : condition * ) # affected by threading mode. extra-libs += pthread ; + # Add 'rt' option on Sun. While we duplicate the + # logic already in sun.jam and gcc.jam, I see no easy + # way to refactor it. + condition += sun:rt ; + switch [ modules.peek : JAMUNAME ] + { + case SunOS* : + { + condition += gcc:rt ; + } + } + # On Linux, we don't want to link either Boost.Python or # Python extensions to libpython, so that when extensions # loaded in the interpreter, the symbols in the interpreter