We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9855249 commit 6166709Copy full SHA for 6166709
setup.py
@@ -437,9 +437,11 @@ def add_gcc_paths(self):
437
438
def detect_modules(self):
439
# Ensure that /usr/local is always used
440
- add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib')
441
- add_dir_to_list(self.compiler.include_dirs, '/usr/local/include')
442
- self.add_gcc_paths()
+ if not cross_compiling:
+ add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib')
+ add_dir_to_list(self.compiler.include_dirs, '/usr/local/include')
443
+ if cross_compiling:
444
+ self.add_gcc_paths()
445
self.add_multiarch_paths()
446
447
# Add paths specified in the environment variables LDFLAGS and
0 commit comments