diff options
Diffstat (limited to 'var/spack/repos/builtin/packages/arpack/package.py')
-rw-r--r-- | var/spack/repos/builtin/packages/arpack/package.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/arpack/package.py b/var/spack/repos/builtin/packages/arpack/package.py index 831a379fce..67ab050236 100644 --- a/var/spack/repos/builtin/packages/arpack/package.py +++ b/var/spack/repos/builtin/packages/arpack/package.py @@ -60,7 +60,9 @@ class Arpack(Package): # Be sure to use the Spack compiler wrapper makefile.filter('^FC.*', 'FC = {0}'.format(os.environ['F77'])) - makefile.filter('^FFLAGS.*', 'FFLAGS = -O2 -g -fPIC') + makefile.filter( + '^FFLAGS.*', 'FFLAGS = -O2 -g {0}'.format(self.compiler.pic_flag) + ) if not which('ranlib'): makefile.filter('^RANLIB.*', 'RANLIB = touch') |