diff --git a/python.jam b/python.jam index e8e1fd003..f5356fc84 100644 --- a/python.jam +++ b/python.jam @@ -145,23 +145,26 @@ rule select-python-includes ( toolset variant : properties * ) return $(properties) ; } -PYTHON_PROPERTIES - += - <*>util +PYTHON_PROPERTIES += + <*>util $(BOOST_ROOT) select-python-library - # These two compilers pick up implicit directions from #pragmas - # to look for those libraries. - <*>$(PYTHON_LIB_PATH) - <*>$(PYTHON_LIB_PATH) - <*>$(PYTHON_LIB_PATH) - ; + ; +if $(NT) +{ + # Most Windows compilers pick up implicit directions from #pragmas + # to look for those libraries. + PYTHON_PROPERTIES += $(PYTHON_LIB_PATH) ; +} + +# Set gcc-specific release build properties { local gcc-release-properties = speed -fomit-frame-pointer on -foptimize-sibling-calls ; + PYTHON_PROPERTIES += $(gcc-release-properties) ; } diff --git a/v1/python.jam b/v1/python.jam index e8e1fd003..f5356fc84 100644 --- a/v1/python.jam +++ b/v1/python.jam @@ -145,23 +145,26 @@ rule select-python-includes ( toolset variant : properties * ) return $(properties) ; } -PYTHON_PROPERTIES - += - <*>util +PYTHON_PROPERTIES += + <*>util $(BOOST_ROOT) select-python-library - # These two compilers pick up implicit directions from #pragmas - # to look for those libraries. - <*>$(PYTHON_LIB_PATH) - <*>$(PYTHON_LIB_PATH) - <*>$(PYTHON_LIB_PATH) - ; + ; +if $(NT) +{ + # Most Windows compilers pick up implicit directions from #pragmas + # to look for those libraries. + PYTHON_PROPERTIES += $(PYTHON_LIB_PATH) ; +} + +# Set gcc-specific release build properties { local gcc-release-properties = speed -fomit-frame-pointer on -foptimize-sibling-calls ; + PYTHON_PROPERTIES += $(gcc-release-properties) ; }