File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -540,6 +540,10 @@ Documentation
540540Build
541541-----
542542
543+ - Issue #20211: Do not add the directory for installing C header files and the
544+ directory for installing object code libraries to the cross compilation
545+ search paths. Original patch by Thomas Petazzoni.
546+
543547- Issue #28849: Do not define sys.implementation._multiarch on Android.
544548
545549- Issue #10656: Fix out-of-tree building on AIX. Patch by Tristan Carel and
Original file line number Diff line number Diff line change @@ -533,8 +533,9 @@ def detect_modules(self):
533533 for directory in reversed (options .dirs ):
534534 add_dir_to_list (dir_list , directory )
535535
536- if os .path .normpath (sys .base_prefix ) != '/usr' \
537- and not sysconfig .get_config_var ('PYTHONFRAMEWORK' ):
536+ if (not cross_compiling and
537+ os .path .normpath (sys .base_prefix ) != '/usr' and
538+ not sysconfig .get_config_var ('PYTHONFRAMEWORK' )):
538539 # OSX note: Don't add LIBDIR and INCLUDEDIR to building a framework
539540 # (PYTHONFRAMEWORK is set) to avoid # linking problems when
540541 # building a framework with different architectures than
You can’t perform that action at this time.
0 commit comments