mirror of
https://github.com/boostorg/build.git
synced 2026-02-15 13:02:11 +00:00
Minor changes to attempt getting Python build working on MacOS-X with Python 2.3 framework.
- darwin-tools.jam; added GCC* env setup variables to allow for using something other than the built in gcc. - darwin-tools.jam; tweaked the bundle-loader feature to also add the bundle as a link object. - python.jam; wire in the framework path for python. - python.jam; remove the <framework> feature from built PYDs. [SVN r18522]
This commit is contained in:
@@ -76,6 +76,18 @@ if $(NT)
|
||||
|
||||
PYTHON_INCLUDES ?= $(PYTHON_ROOT)/include ;
|
||||
}
|
||||
else if $(UNIX) && $(OS) = MACOSX
|
||||
{
|
||||
PYTHON_ROOT ?= /Library/Frameworks/Python.framework/Versions/$(PYTHON_VERSION) ;
|
||||
PYTHON_ROOT = $(PYTHON_ROOT:J=" ") ;
|
||||
PYTHON_INCLUDES ?= $(PYTHON_ROOT)/include/python$(PYTHON_VERSION) ;
|
||||
PYTHON_LIB_PATH ?= $(PYTHON_ROOT)/lib/python$(PYTHON_VERSION)/config ;
|
||||
|
||||
PYTHON_PROPERTIES ?=
|
||||
<sysinclude>$(PYTHON_INCLUDES)
|
||||
<library-path>$(PYTHON_LIB_PATH)
|
||||
;
|
||||
}
|
||||
else if $(UNIX)
|
||||
{
|
||||
PYTHON_ROOT ?= /usr/local ;
|
||||
@@ -178,11 +190,12 @@ rule select-python-library ( toolset variant : properties * )
|
||||
{
|
||||
if <target-type>PYD in $(properties)
|
||||
{
|
||||
properties +=
|
||||
<bundle-loader>$(PYTHON_ROOT)/bin/python$(PYTHON_VERSION)
|
||||
;
|
||||
properties += <bundle-loader>$(PYTHON_ROOT)/Python ;
|
||||
}
|
||||
else
|
||||
{
|
||||
properties += <framework>$(PYTHON_ROOT)/Python ;
|
||||
}
|
||||
properties += <framework>Python ;
|
||||
}
|
||||
return $(properties) ;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user