diff --git a/v1/python.jam b/v1/python.jam index 9d46bbae3..f9c01e25b 100644 --- a/v1/python.jam +++ b/v1/python.jam @@ -131,7 +131,11 @@ else if $(UNIX) if $(OS) = OSF { - PYTHON_PROPERTIES += <*><*>"-expect_unresolved 'Py*' -expect_unresolved '_Py*'" ; + local not-gcc-compilers = [ difference $(TOOLS) : $(gcc-compilers) ] ; + + PYTHON_PROPERTIES += + <$(not-gcc-compilers)><*>"-expect_unresolved 'Py*' -expect_unresolved '_Py*'" + <$(gcc-compilers)><*>"-Xlinker -expect_unresolved -Xlinker 'Py*' -Xlinker -expect_unresolved -Xlinker '_Py*'" ; } else if $(OS) = AIX {