2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-18 14:02:11 +00:00

Make sure that the libpython target is declared with distinct requirements each time, thus forming valid target alternatives.

[SVN r37210]
This commit is contained in:
Dave Abrahams
2007-03-16 23:05:14 +00:00
parent 7adced1aea
commit 444fa3c254

View File

@@ -622,12 +622,12 @@ local rule system-library-dependencies ( target-os )
# Declare a target to represent Python's library, returning the target
# name.
local rule declare-libpython-target ( version ? : target-os )
local rule declare-libpython-target ( version ? : sys.platform : requirements * )
{
# Compute the representation of Python version in the name of
# Python's library file.
local lib-version = $(version) ;
if $(target-os) = windows
if <target-os>windows in $(requirements)
{
local major-minor = [ split-version $(version) ] ;
lib-version = $(major-minor:J="") ;
@@ -638,7 +638,7 @@ local rule declare-libpython-target ( version ? : target-os )
libpython-target-name = $(libpython-target-name:J=-) ;
# Declare and return it
lib $(libpython-target-name) : : <name>python$(lib-version) ;
lib $(libpython-target-name) : : <name>python$(lib-version) $(requirements) ;
return $(libpython-target-name) ;
}
@@ -824,7 +824,9 @@ local rule configure (
}
else
{
local libpython-target-name = [ declare-libpython-target $(version) : $(target-os) ] ;
local libpython-target-name
= [ declare-libpython-target $(version) : $(sys.platform) : $(target-requirements) ] ;
alias python
: $(system-libs)
: $(target-requirements)