mirror of
https://github.com/boostorg/python.git
synced 2026-01-30 20:12:37 +00:00
Don't link Boost.Python to python library, and don't require
<threading>multi for embedding applications. * libs/python/build/Jamfile.v2: (boost_python): Don't link to /python//python. Use /python//python_for_extensions. * libs/python/test/Jamfile.v2: Remove <threading>multi project requirements. (py-run): Link to /python//python. (exec): Likewise. * tools/build/v2/tools/python.jam: (pthread): Declare. (init-unix): Add 'pthread' to extra-libs. ( [SVN r34662]
This commit is contained in:
@@ -59,7 +59,12 @@ lib boost_python
|
||||
: # requirements
|
||||
<link>static:<define>BOOST_PYTHON_STATIC_LIB
|
||||
<define>BOOST_PYTHON_SOURCE
|
||||
<library>/python//python
|
||||
# We don't link to Python library itself. If
|
||||
# Boost.Python is used for extension, all Python
|
||||
# symbols are available in Python interpreter.
|
||||
# If Boost.Python is used for extending, client
|
||||
# is required to link to /python//python itself.
|
||||
<use>/python//python_for_extensions
|
||||
: # default build
|
||||
<link>shared
|
||||
: # usage requirements
|
||||
|
||||
@@ -2,11 +2,9 @@
|
||||
use-project /boost/python : ../build ;
|
||||
project /boost/python/test ;
|
||||
|
||||
project : requirements <threading>multi ;
|
||||
|
||||
rule py-run ( sources * )
|
||||
{
|
||||
return [ run $(sources) /boost/python//boost_python ] ;
|
||||
return [ run $(sources) /boost/python//boost_python /python//python ] ;
|
||||
}
|
||||
|
||||
rule py-compile ( sources * )
|
||||
@@ -36,7 +34,7 @@ test-suite python
|
||||
:
|
||||
|
||||
[
|
||||
run exec.cpp ../build//boost_python/<link>static
|
||||
run exec.cpp ../build//boost_python/<link>static /python//python
|
||||
: # program args
|
||||
: exec.py
|
||||
: # requirements
|
||||
|
||||
Reference in New Issue
Block a user