Partial success Re: [C++-sig] boost.python on OS X 10.3 (Panther)

Ralf W. Grosse-Kunstleve rwgk at
Tue Nov 4 22:47:13 CET 2003

--- Rene Rivera <grafik.list at> wrote:
> Curious... All I did was take out the -bundle_loader option.
> Could you compare that link commands to your working SCons based build?
> (bjam -d+2 option)

To convince myself everything is still OK I've re-run my scons-based build from
scratch against the latest CVS. Everything turns out to work just fine. Here
are a few example commands:

c++ -fPIC -no-cpp-precomp -ftemplate-depth-120 -fcoalesce-templates
-Wno-long-double -w -DNDEBUG -O3 -DBOOST_PYTHON_MAX_BASES=2
-DBOOST_PYTHON_SOURCE -I/net/worm/scratch1/rwgk/hot/boost
-I/Library/Frameworks/Python.framework/Versions/2.3/include/python2.3 -c -o

ld -dynamic -m -r -d -bind_at_load -o libboost_python.lo
boost/libs/python/src/numeric.os boost/libs/python/src/list.os ...
c++ -nostartfiles -Wl,-dylib -ldylib1.o -framework Python -o
libtbx/libboost_python.dylib libboost_python.lo
rm -f libboost_python.lo

c++ -fPIC -no-cpp-precomp -ftemplate-depth-120 -fcoalesce-templates
-Wno-long-double -w -DNDEBUG -O3 -DBOOST_PYTHON_MAX_BASES=2
-I/Library/Frameworks/Python.framework/Versions/2.3/include/python2.3 -c -o

c++ -bundle -bundle_loader
/Library/Frameworks/Python.framework/Versions/2.3/Python -o libtbx/
boost/libs/python/test/str.os -Llibtbx -L/net/worm/scratch1/rwgk/hot/libtbx
-lboost_python -lm

This is pretty much what I had a few days ago except for the addition of
-bind_at_load. I am still using -bundle_loader as you can see. Was your idea to
make this obsolete by using -F while compiling extension modules? Why do you
want to eliminate the -bundle_loader switch?


Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard

More information about the Cplusplus-sig mailing list