Kaydet (Commit) 1351c31a authored tarafından Xavier de Gaye's avatar Xavier de Gaye

Issue #20211: Do not add the directory for installing C header files and

the directory for installing object code libraries to the cross compilation
search paths.
üst 7262b42f
...@@ -53,6 +53,10 @@ Tests ...@@ -53,6 +53,10 @@ Tests
Build Build
----- -----
- Issue #20211: Do not add the directory for installing C header files and the
directory for installing object code libraries to the cross compilation
search paths. Original patch by Thomas Petazzoni.
- Issue #28849: Do not define sys.implementation._multiarch on Android. - Issue #28849: Do not define sys.implementation._multiarch on Android.
......
...@@ -532,8 +532,9 @@ class PyBuildExt(build_ext): ...@@ -532,8 +532,9 @@ class PyBuildExt(build_ext):
for directory in reversed(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.base_prefix) != '/usr' \ if (not cross_compiling and
and not sysconfig.get_config_var('PYTHONFRAMEWORK'): os.path.normpath(sys.base_prefix) != '/usr' and
not sysconfig.get_config_var('PYTHONFRAMEWORK')):
# OSX note: Don't add LIBDIR and INCLUDEDIR to building a framework # OSX note: Don't add LIBDIR and INCLUDEDIR to building a framework
# (PYTHONFRAMEWORK is set) to avoid # linking problems when # (PYTHONFRAMEWORK is set) to avoid # linking problems when
# building a framework with different architectures than # building a framework with different architectures than
......
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