summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorTiziano Müller <tiziano.mueller@chem.uzh.ch>2019-04-26 10:27:11 +0200
committerPeter Scheibel <scheibel1@llnl.gov>2019-05-10 03:43:02 +0900
commit4b3e43cc64b9c297e4c209919b9aeb09ecf9e6ae (patch)
treea98ea6e92d604164826da6ba0027bd751daf330c /var
parentf343d6fc6847b234e67a40e8ec1d3f7fd77ef310 (diff)
downloadspack-4b3e43cc64b9c297e4c209919b9aeb09ecf9e6ae.tar.gz
spack-4b3e43cc64b9c297e4c209919b9aeb09ecf9e6ae.tar.bz2
spack-4b3e43cc64b9c297e4c209919b9aeb09ecf9e6ae.tar.xz
spack-4b3e43cc64b9c297e4c209919b9aeb09ecf9e6ae.zip
packages/cp2k: build with -ggdb with GNU for backtraces
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/cp2k/package.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/cp2k/package.py b/var/spack/repos/builtin/packages/cp2k/package.py
index 8c1c1a7ffe..646392f5b9 100644
--- a/var/spack/repos/builtin/packages/cp2k/package.py
+++ b/var/spack/repos/builtin/packages/cp2k/package.py
@@ -174,7 +174,11 @@ class Cp2k(MakefilePackage):
cxxflags.append('-fp-model precise')
fcflags.extend(['-fp-model source', '-heap-arrays 64'])
elif '%gcc' in spec:
- fcflags.extend(['-ffree-form', '-ffree-line-length-none'])
+ fcflags.extend([
+ '-ffree-form',
+ '-ffree-line-length-none',
+ '-ggdb', # make sure we get proper Fortran backtraces
+ ])
elif '%pgi' in spec:
fcflags.extend(['-Mfreeform', '-Mextend'])