From 208e193c6a522e43d6d8aeb8053f767d2f7ca5fa Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Sat, 1 Dec 2007 02:15:17 +0000 Subject: [PATCH] Boost.Python: * Workarounds for many SunCC 5.9 bugs * Suppression of many SunCC 5.9 warnings * Improve the style of some test invocations in Jamfile [SVN r41521] --- v2/tools/python.jam | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/v2/tools/python.jam b/v2/tools/python.jam index ef40bc560..b21441159 100644 --- a/v2/tools/python.jam +++ b/v2/tools/python.jam @@ -610,13 +610,16 @@ local rule system-library-dependencies ( target-os ) # appears to duplicate the logic already in gcc.jam, it # doesn't as long as we're not forcing multi. - # Caleb Epstein reports that his python's + # On solaris 10, # distutils.sysconfig.get_config_var('LIBS') yields - # -lresolv -lsocket -lnsl -lrt -ldl. However, we're not - # yet sure that is the right list for extension modules. - # Being conservative, we add rt and remove pthread, which - # was causing errors. - return dl gcc:rt ; + # '-lresolv -lsocket -lnsl -lrt -ldl'. However, that + # doesn't seem to be the right list for extension modules. + # For example, on my installation, adding -ldl causes at + # least one test to fail because the library can't be + # found and removing it causes no failures. + + # Apparently, though, we need to add -lrt for gcc. + return gcc:rt ; case osf : return pthread gcc:rt ;