From 28a0b3cdb6d1c711a22f0d56c899e948e17c22f8 Mon Sep 17 00:00:00 2001 From: Roumen Petrov Date: Mon, 23 Jul 2012 23:31:20 +0300 Subject: [PATCH 03/27] CROSS-initialise include and library paths --- setup.py | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index d6a5866..f773c2f 100644 --- a/setup.py +++ b/setup.py @@ -501,12 +501,16 @@ class PyBuildExt(build_ext): # lib_dirs and inc_dirs are used to search for files; # if a file is found in one of those directories, it can # be assumed that no additional -I,-L directives are needed. + lib_dirs = self.compiler.library_dirs + inc_dirs = self.compiler.include_dirs if not cross_compiling: - lib_dirs = self.compiler.library_dirs + [ + lib_dirs += [ '/lib64', '/usr/lib64', '/lib', '/usr/lib', ] - inc_dirs = self.compiler.include_dirs + ['/usr/include'] + inc_dirs += ['/usr/include'] + else: + self.compiler.library_dirs.insert(0, '.') exts = [] missing = [] -- 1.6.4