From 4c4212b792ffce841ae31d842c0e0a52e285e071 Mon Sep 17 00:00:00 2001 From: Julian Taylor Date: Sun, 24 Aug 2014 16:52:14 +0200 Subject: BLD: add debug information to gfortran builds Similar to C builds which always have debug info. --- numpy/distutils/fcompiler/gnu.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'numpy/distutils/fcompiler') 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' : ["", "--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' : ["", "-Wall"], + 'compiler_fix' : [None, "-Wall", "-g","-ffixed-form", + "-fno-second-underscore"] + _EXTRAFLAGS, + 'linker_so' : ["", "-Wall", "-g"], 'archiver' : ["ar", "-cr"], 'ranlib' : ["ranlib"], 'linker_exe' : [None, "-Wall"] -- cgit v1.2.1