Commit 912ba543 authored by Brett Cannon's avatar Brett Cannon

Backport r60537: have order of CPPFLAGS and LDFLAGS be honored.

parent 143a070f
...@@ -260,6 +260,9 @@ Documentation ...@@ -260,6 +260,9 @@ Documentation
Build Build
----- -----
- Have the search path for building extensions follow the declared order in
$CPPFLAGS and $LDFLAGS.
- Bug #1234: Fixed semaphore errors on AIX 5.2 - Bug #1234: Fixed semaphore errors on AIX 5.2
- Bug #1699: Define _BSD_SOURCE only on OpenBSD. - Bug #1699: Define _BSD_SOURCE only on OpenBSD.
......
...@@ -277,7 +277,7 @@ class PyBuildExt(build_ext): ...@@ -277,7 +277,7 @@ class PyBuildExt(build_ext):
parser.add_option(arg_name, dest="dirs", action="append") parser.add_option(arg_name, dest="dirs", action="append")
options = parser.parse_args(env_val.split())[0] options = parser.parse_args(env_val.split())[0]
if options.dirs: if options.dirs:
for directory in options.dirs: for directory in reversed(options.dirs):
add_dir_to_list(dir_list, directory) add_dir_to_list(dir_list, directory)
if os.path.normpath(sys.prefix) != '/usr': 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