diff --git a/build/Jamfile.v2 b/build/Jamfile.v2 index 62f3b344..f2912fa7 100644 --- a/build/Jamfile.v2 +++ b/build/Jamfile.v2 @@ -13,15 +13,23 @@ else if [ GLOB /usr/include/python2.2 : * ] PYTHON_PATH = /usr ; } -PYTHON_LIB = python2.2 ; - if [ os.name ] in CYGWIN NT { - lib_condition = true: ; + lib_condition = shared: ; defines = USE_DL_IMPORT ; - PYTHON_LIB = python2.2.dll ; + + # Declare a target for the python interpreter library + lib python : : python2.2.dll ; + PYTHON_LIB = python ; +} +else +{ + lib python : : python2.2 ; + PYTHON_LIB = python ; } + + if $(PYTHON_PATH) { @@ -29,7 +37,7 @@ project boost/python : source-location ../src : requirements $(PYTHON_PATH)/include/python2.2 $(lib_condition)$(PYTHON_PATH)/lib/python2.2/config - true:$(PYTHON_LIB) + shared:$(PYTHON_LIB) $(defines) : use-requirements # requirement that will be propageted to *users* of this library $(PYTHON_PATH)/include/python2.2 @@ -40,7 +48,7 @@ project boost/python # true:$(PYTHON_LIB) $(PYTHON_PATH)/lib/python2.2/config - $(PYTHON_LIB) + $(PYTHON_LIB) ; lib boost_python @@ -70,8 +78,8 @@ lib boost_python object/iterator.cpp object_protocol.cpp object_operators.cpp - : false:BOOST_PYTHON_STATIC_LIB + : static:BOOST_PYTHON_STATIC_LIB BOOST_PYTHON_SOURCE - : true + : shared ; } diff --git a/example/Jamfile.v2 b/example/Jamfile.v2 index f80168e2..cf7a2972 100644 --- a/example/Jamfile.v2 +++ b/example/Jamfile.v2 @@ -7,4 +7,6 @@ project python-extension getting_started1 : getting_started1.cpp : true ; python-extension getting_started2 : getting_started2.cpp : true ; + +exe embedding_test : embedding_test.cpp : BOOST_PYTHON_DYNAMIC_LIB true ;