Commit ff6516c6 authored by Brett Cannon's avatar Brett Cannon

Directories from CPPFLAGS and LDFLAGS were being added in the reverse order for

searches as to how they were listed in the environment variable.
parent 604cf186
......@@ -327,7 +327,7 @@ class PyBuildExt(build_ext):
parser.add_option(arg_name, dest="dirs", action="append")
options = parser.parse_args(env_val.split())[0]
if options.dirs:
for directory in options.dirs:
for directory in reversed(options.dirs):
add_dir_to_list(dir_list, directory)
if os.path.normpath(sys.prefix) != '/usr':
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment