[python] [BBv2] Solaris doesn't need -lutil

http://tinyurl.com/ftcyb I believe -lutil is needed for openpty on Linux, but there is no -lutil on Solaris and probably other OSes. It looks like this falls out of a change to tools/python.jam from yesterday. Can't we just do what Martin suggested and just use Python's distutils configuration to generate the library list? It seems like Cygwin would be the only special case then. Here's what I get on my Solaris system: % python -c "import distutils.sysconfig; print distutils.sysconfig.get_config_var('LIBS')" -lresolv -lsocket -lnsl -lrt -ldl And on a RedHat AS3 system: -lpthread -ldl -lutil -- Caleb Epstein caleb dot epstein at gmail dot com

Caleb Epstein wrote:
I believe -lutil is needed for openpty on Linux, but there is no -lutil on Solaris and probably other OSes. It looks like this falls out of a change to tools/python.jam from yesterday.
Can't we just do what Martin suggested and just use Python's distutils configuration to generate the library list? It seems like Cygwin would be the only special case then.
Here's what I get on my Solaris system:
% python -c "import distutils.sysconfig; print distutils.sysconfig.get_config_var('LIBS')" -lresolv -lsocket -lnsl -lrt -ldl
And on a RedHat AS3 system: -lpthread -ldl -lutil
I've just copied over the V1 logic for now. Using 'distutils' might be a good idea, but for future. Now, if only CVS worked at the moment :-( - Volodya
participants (2)
-
Caleb Epstein
-
Vladimir Prus