summaryrefslogtreecommitdiff
path: root/numpy/distutils/fcompiler
diff options
context:
space:
mode:
authorJulian Taylor <jtaylor.debian@googlemail.com>2014-08-24 16:52:14 +0200
committerJulian Taylor <jtaylor.debian@googlemail.com>2014-08-24 16:57:08 +0200
commit4c4212b792ffce841ae31d842c0e0a52e285e071 (patch)
tree2854ba3d44a75af90f94833fe09bb0b37b4211b5 /numpy/distutils/fcompiler
parentbbb7c3fbcdc2ddfcf79317661be2b99b1f6617e3 (diff)
downloadnumpy-4c4212b792ffce841ae31d842c0e0a52e285e071.tar.gz
BLD: add debug information to gfortran builds
Similar to C builds which always have debug info.
Diffstat (limited to 'numpy/distutils/fcompiler')
-rw-r--r--numpy/distutils/fcompiler/gnu.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/numpy/distutils/fcompiler/gnu.py b/numpy/distutils/fcompiler/gnu.py
index b786c0a46..bd8217d24 100644
--- a/numpy/distutils/fcompiler/gnu.py
+++ b/numpy/distutils/fcompiler/gnu.py
@@ -252,12 +252,13 @@ class Gnu95FCompiler(GnuFCompiler):
possible_executables = ['gfortran', 'f95']
executables = {
'version_cmd' : ["<F90>", "--version"],
- 'compiler_f77' : [None, "-Wall", "-ffixed-form",
+ 'compiler_f77' : [None, "-Wall", "-g", "-ffixed-form",
"-fno-second-underscore"] + _EXTRAFLAGS,
- 'compiler_f90' : [None, "-Wall", "-fno-second-underscore"] + _EXTRAFLAGS,
- 'compiler_fix' : [None, "-Wall", "-ffixed-form",
+ 'compiler_f90' : [None, "-Wall", "-g",
"-fno-second-underscore"] + _EXTRAFLAGS,
- 'linker_so' : ["<F90>", "-Wall"],
+ 'compiler_fix' : [None, "-Wall", "-g","-ffixed-form",
+ "-fno-second-underscore"] + _EXTRAFLAGS,
+ 'linker_so' : ["<F90>", "-Wall", "-g"],
'archiver' : ["ar", "-cr"],
'ranlib' : ["ranlib"],
'linker_exe' : [None, "-Wall"]