summaryrefslogtreecommitdiff
path: root/numpy/distutils/ccompiler.py
diff options
context:
space:
mode:
authorPearu Peterson <pearu.peterson@gmail.com>2006-02-18 12:43:14 +0000
committerPearu Peterson <pearu.peterson@gmail.com>2006-02-18 12:43:14 +0000
commitcfffff3dee854e924d11ad80ad0a9024fe83170d (patch)
treef54008c4407e1a8548452ab5a05cee4ee4eee664 /numpy/distutils/ccompiler.py
parentca84e842144162056592cf97a172708946a049e0 (diff)
downloadnumpy-cfffff3dee854e924d11ad80ad0a9024fe83170d.tar.gz
Fixing mingw32 building: fixes undefined referece __EH_FRAME_BEGIN__ linker failure.
Diffstat (limited to 'numpy/distutils/ccompiler.py')
-rw-r--r--numpy/distutils/ccompiler.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/numpy/distutils/ccompiler.py b/numpy/distutils/ccompiler.py
index f865416b3..efd458897 100644
--- a/numpy/distutils/ccompiler.py
+++ b/numpy/distutils/ccompiler.py
@@ -10,7 +10,7 @@ from distutils.version import LooseVersion
import log
from exec_command import exec_command
-from misc_util import cyg2win32, is_sequence
+from misc_util import cyg2win32, is_sequence, mingw32
from distutils.spawn import _nt_quote_args
# Using customized CCompiler.spawn.
@@ -235,8 +235,7 @@ if sys.platform == 'win32':
compiler_class['mingw32'] = ('mingw32ccompiler', 'Mingw32CCompiler',
"Mingw32 port of GNU C Compiler for Win32"\
"(for MSC built Python)")
- if os.environ.get('OSTYPE','')=='msys' or \
- os.environ.get('MSYSTEM','')=='MINGW32':
+ if mingw32():
# On windows platforms, we want to default to mingw32 (gcc)
# because msvc can't build blitz stuff.
log.info('Setting mingw32 as default compiler for nt.')