packages/cp2k: build with -ggdb with GNU for backtraces

This commit is contained in:
Tiziano Müller 2019-04-26 10:27:11 +02:00 committed by Peter Scheibel
parent f343d6fc68
commit 4b3e43cc64

View file

@ -174,7 +174,11 @@ def edit(self, spec, prefix):
cxxflags.append('-fp-model precise') cxxflags.append('-fp-model precise')
fcflags.extend(['-fp-model source', '-heap-arrays 64']) fcflags.extend(['-fp-model source', '-heap-arrays 64'])
elif '%gcc' in spec: 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: elif '%pgi' in spec:
fcflags.extend(['-Mfreeform', '-Mextend']) fcflags.extend(['-Mfreeform', '-Mextend'])