From 4b3e43cc64b9c297e4c209919b9aeb09ecf9e6ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tiziano=20M=C3=BCller?= Date: Fri, 26 Apr 2019 10:27:11 +0200 Subject: [PATCH] packages/cp2k: build with -ggdb with GNU for backtraces --- var/spack/repos/builtin/packages/cp2k/package.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 @@ def edit(self, spec, prefix): 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'])