diff options
Diffstat (limited to 'var/spack/repos/builtin/packages/metis/package.py')
-rw-r--r-- | var/spack/repos/builtin/packages/metis/package.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/metis/package.py b/var/spack/repos/builtin/packages/metis/package.py index 2f450951e3..43feace931 100644 --- a/var/spack/repos/builtin/packages/metis/package.py +++ b/var/spack/repos/builtin/packages/metis/package.py @@ -91,7 +91,7 @@ class Metis(Package): raise InstallError('METIS@:4 does not support the following ' 'variants: gdb, int64, real64.') - options = ['COPTIONS=-fPIC'] + options = ['COPTIONS={0}'.format(self.compiler.pic_flag)] if '+debug' in spec: options.append('OPTFLAGS=-g -O0') make(*options) @@ -119,7 +119,7 @@ class Metis(Package): install(sharefile, prefix.share) if '+shared' in spec: - shared_flags = ['-fPIC', '-shared'] + shared_flags = [self.compiler.pic_flag, '-shared'] if sys.platform == 'darwin': shared_suffix = 'dylib' shared_flags.extend(['-Wl,-all_load', 'libmetis.a']) |