diff options
author | Satish Balay <balay@mcs.anl.gov> | 2018-10-03 08:19:43 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-03 08:19:43 -0500 |
commit | 846e2c7ca92adabe697fb84c86df59ba8f68e455 (patch) | |
tree | f1b00a1542fc466e0a9225ade5993434e34aa031 | |
parent | c46a7a61f0c71874b8b3df87125ffcdbb2d70762 (diff) | |
download | spack-846e2c7ca92adabe697fb84c86df59ba8f68e455.tar.gz spack-846e2c7ca92adabe697fb84c86df59ba8f68e455.tar.bz2 spack-846e2c7ca92adabe697fb84c86df59ba8f68e455.tar.xz spack-846e2c7ca92adabe697fb84c86df59ba8f68e455.zip |
PETSc: configure use CFLAGS,FFLAGS,CXXFLAGS from spack (#9383)
-rw-r--r-- | var/spack/repos/builtin/packages/petsc/package.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/petsc/package.py b/var/spack/repos/builtin/packages/petsc/package.py index 7b89028820..8faeff76e5 100644 --- a/var/spack/repos/builtin/packages/petsc/package.py +++ b/var/spack/repos/builtin/packages/petsc/package.py @@ -205,6 +205,9 @@ class Petsc(Package): '--download-c2html=0', '--download-sowing=0', '--download-hwloc=0', + 'CFLAGS=%s' % ' '.join(spec.compiler_flags['cflags']), + 'FFLAGS=%s' % ' '.join(spec.compiler_flags['fflags']), + 'CXXFLAGS=%s' % ' '.join(spec.compiler_flags['cxxflags']), 'COPTFLAGS=', 'FOPTFLAGS=', 'CXXOPTFLAGS='] |