2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-24 06:02:14 +00:00

Prepend Boost paths rather than append them; puts explicit paths at a higher priority than paths pulled from distutils (patch from Neal Becker).

This commit is contained in:
Jim Bosch
2012-04-17 23:03:58 -04:00
parent 77b89341d0
commit 029eb385ed

View File

@@ -143,9 +143,9 @@ int main()
if boost_lib is None:
boost_lib = os.path.join(boost_prefix, "lib")
if boost_include:
context.env.AppendUnique(CPPPATH=[boost_include])
context.env.PrependUnique(CPPPATH=[boost_include])
if boost_lib:
context.env.AppendUnique(LIBPATH=[boost_lib])
context.env.PrependUnique(LIBPATH=[boost_lib])
result = (
CheckLibs(context, [''], bp_source_file) or
CheckLibs(context, ['boost_python'], bp_source_file) or