2
0
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:
Rene Rivera
2003-05-24 06:53:00 +00:00
parent 06f4f865ac
commit d7bd74cf26
4 changed files with 172 additions and 32 deletions

View File

@@ -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) ;
}