diff --git a/python.jam b/python.jam index c36be7f0c..ff1d07eb6 100644 --- a/python.jam +++ b/python.jam @@ -155,6 +155,22 @@ PYTHON_PROPERTIES <*>$(PYTHON_LIB_PATH) ; +{ + local gcc-release-properties + = speed -fomit-frame-pointer + on -foptimize-sibling-calls + ; + PYTHON_PROPERTIES += $(gcc-release-properties) ; +} + +BOOST_PYTHON_V2_PROPERTIES + = $(PYTHON_PROPERTIES) + <*>"-inline deferred" + <*>$(BOOST_ROOT)/boost/compatibility/cpp_c_headers + BOOST_PYTHON_DYNAMIC_LIB + BOOST_PYTHON_V2 + ; + # Extends the RUN_PATH assignment for targets built under Cygwin so # that the Python DLL can be found. rule add-cygwin-python-run-path ( module ) diff --git a/v1/python.jam b/v1/python.jam index c36be7f0c..ff1d07eb6 100644 --- a/v1/python.jam +++ b/v1/python.jam @@ -155,6 +155,22 @@ PYTHON_PROPERTIES <*>$(PYTHON_LIB_PATH) ; +{ + local gcc-release-properties + = speed -fomit-frame-pointer + on -foptimize-sibling-calls + ; + PYTHON_PROPERTIES += $(gcc-release-properties) ; +} + +BOOST_PYTHON_V2_PROPERTIES + = $(PYTHON_PROPERTIES) + <*>"-inline deferred" + <*>$(BOOST_ROOT)/boost/compatibility/cpp_c_headers + BOOST_PYTHON_DYNAMIC_LIB + BOOST_PYTHON_V2 + ; + # Extends the RUN_PATH assignment for targets built under Cygwin so # that the Python DLL can be found. rule add-cygwin-python-run-path ( module )