mirror of
https://github.com/python/cpython.git
synced 2025-10-04 06:06:44 +00:00
Backport r60537: have order of CPPFLAGS and LDFLAGS be honored.
This commit is contained in:
parent
143a070fa0
commit
912ba54394
2 changed files with 4 additions and 1 deletions
|
@ -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.
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -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':
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue