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 ;