Roumen Petrov added the comment:
> Matthias Klose added the comment:
> I don't think this one is still necessary. can it be closed?
If is difficult to confirm.
In scope of issue title initialization is fixed.
Another part of proposed path is to insert at first position current
directory if cross build.
If this is not acceptable in scope of this then someone could open a new
issue to set unconditionally in BLDLIBRARY current directory, i.e. to
change configure script.
I don't like to touch existing native build so in scope of cross build
this patch propose libdir to start with current.
Roumen
----------
Added file:
http://bugs.python.org/file28854/0004-CROSS-initialise-include-and-library-paths.patch
_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue15483>
_______________________________________
>From 9fe8bd2e63ad383c795962cea3aa1ff11b493988 Mon Sep 17 00:00:00 2001
From: Roumen Petrov <lo...@example.net>
Date: Mon, 23 Jul 2012 23:31:20 +0300
Subject: [PATCH 04/13] CROSS-initialise include and library paths
---
setup.py | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/setup.py b/setup.py
index 5d38d29..4a27ba7 100644
--- a/setup.py
+++ b/setup.py
@@ -500,15 +500,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:
- lib_dirs = self.compiler.library_dirs[:]
- inc_dirs = self.compiler.include_dirs[:]
+ self.compiler.library_dirs.insert(0, '.')
exts = []
missing = []
--
1.7.12.1
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com