[gnumeric] win32: check for yet another mingw binary.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] win32: check for yet another mingw binary.
- Date: Tue, 27 Jul 2010 23:33:23 +0000 (UTC)
commit ce6958fc8a42526dbe5a280517fca098fa91dc5c
Author: Morten Welinder <terra gnome org>
Date: Tue Jul 27 19:33:01 2010 -0400
win32: check for yet another mingw binary.
tools/win32/jhbuildrc.py | 16 ++++++++++++----
1 files changed, 12 insertions(+), 4 deletions(-)
---
diff --git a/tools/win32/jhbuildrc.py b/tools/win32/jhbuildrc.py
index 2a11a03..5220ae7 100644
--- a/tools/win32/jhbuildrc.py
+++ b/tools/win32/jhbuildrc.py
@@ -29,11 +29,19 @@ addpath('PKG_CONFIG_PATH', os.path.join(os.sep, prefix, 'lib64', 'pkgconfig'))
addpath('PKG_CONFIG_PATH', os.path.join(os.sep, prefix, 'share', 'pkgconfig'))
#Prefix for all the tools
-mingw_tool_prefix = '/usr/bin/i586-mingw32msvc-'
-if os.path.exists(mingw_tool_prefix + 'gcc'):
- 0# Nothing
+mingw_tool_prefix1 = '/usr/bin/i586-mingw32msvc-'
+mingw_tool_prefix2 = '/usr/bin/i686-pc-mingw32-'
+mingw_tool_prefix3 = '/opt/cross/bin/i386-mingw32msvc-'
+
+if os.path.exists(mingw_tool_prefix1 + 'gcc'):
+ mingw_tool_prefix = mingw_tool_prefix1
+elif os.path.exists(mingw_tool_prefix2 + 'gcc'):
+ mingw_tool_prefix = mingw_tool_prefix2
+elif os.path.exists(mingw_tool_prefix3 + 'gcc'):
+ mingw_tool_prefix = mingw_tool_prefix3
else:
- mingw_tool_prefix = '/usr/bin/i686-pc-mingw32-'
+ print "Unable to find mingw"
+ sys.exit (1)
mingw_tools = {'ADDR2LINE': 'addr2line',
'AS': 'as', 'CC': 'gcc', 'CPP': 'cpp',
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]