Commit 6166709e authored by Ned Deily's avatar Ned Deily

Issue #17990: Only modify include and library search paths when cross-compiling.

parent 9855249a
...@@ -437,9 +437,11 @@ class PyBuildExt(build_ext): ...@@ -437,9 +437,11 @@ class PyBuildExt(build_ext):
def detect_modules(self): def detect_modules(self):
# Ensure that /usr/local is always used # Ensure that /usr/local is always used
add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib') if not cross_compiling:
add_dir_to_list(self.compiler.include_dirs, '/usr/local/include') add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib')
self.add_gcc_paths() add_dir_to_list(self.compiler.include_dirs, '/usr/local/include')
if cross_compiling:
self.add_gcc_paths()
self.add_multiarch_paths() self.add_multiarch_paths()
# Add paths specified in the environment variables LDFLAGS and # Add paths specified in the environment variables LDFLAGS and
......
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