diff --git a/v1/python.jam b/v1/python.jam index d8035f42e..f2a02eebe 100644 --- a/v1/python.jam +++ b/v1/python.jam @@ -124,6 +124,7 @@ else if $(UNIX) PYTHON_PROPERTIES ?= $(PYTHON_INCLUDES) $(PYTHON_LIB_PATH) + python-intel-use-gcc-stdlib ; if $(OS) = OSF @@ -187,6 +188,22 @@ CYGWIN_ROOT ?= c:/cygwin ; } } +# Normally on Linux, Python is built with GCC. A "poor QOI choice" in +# the implementation of the intel tools prevents the use of +# intel-linked shared libs by a GCC-built executable unless they have +# been told to use the GCC runtime. This rule adds the requisite +# flags to the compile and link lines. +rule python-intel-use-gcc-stdlib ( toolset variant : properties * ) +{ + if ! $(PYTHON_WINDOWS) + && ! BOOST_PYTHON_STATIC_LIB in $(properties) + && [ MATCH (intel) : $(toolset) ] + { + properties += -cxxlib-gcc -cxxlib-gcc ; + } + return $(properties) ; +} + # select-python-library # # Ungristed elements of a requirements list are treated as the rule