From fc80d56d79bad31b3fbdfd1bdb78646206368e63 Mon Sep 17 00:00:00 2001 From: Vladimir Prus Date: Wed, 22 Mar 2006 10:14:00 +0000 Subject: [PATCH] Declare 'dl' target only once, to avoid ambiguity if several python versions are configured. [SVN r33437] --- v2/tools/python.jam | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/v2/tools/python.jam b/v2/tools/python.jam index cd98ce5b3..5ffc48612 100644 --- a/v2/tools/python.jam +++ b/v2/tools/python.jam @@ -44,6 +44,11 @@ project python ; # not in whatever project we were called by. .project = [ project.current ] ; +# Dynamic linker lib. Necessary to specify it explicitly +# on some platforms. +lib dl ; + + # Initializes the Python toolset. # - version -- the version of Python to use. Should be in Major.Minor format, # for example 2.3 @@ -119,11 +124,7 @@ rule init-unix ( version ? : root ? : includes ? : libraries ? : condition * ) else { flags python.capture-output PYTHON $(condition:J=/) : $(interpreter) ; - } - - # Dynamic linker lib. Necessary to specify it explicitly - # on some platforms. - lib dl ; + } # On Linux, we don't want to link either Boost.Python or # Python extensions to libpython, so that when extensions