diff options
Diffstat (limited to 'var/spack')
-rw-r--r-- | var/spack/repos/builtin/packages/libfuse/package.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/var/spack/repos/builtin/packages/libfuse/package.py b/var/spack/repos/builtin/packages/libfuse/package.py index 8df03c5366..298c0decdf 100644 --- a/var/spack/repos/builtin/packages/libfuse/package.py +++ b/var/spack/repos/builtin/packages/libfuse/package.py @@ -68,12 +68,10 @@ class Libfuse(MesonPackage): "INIT_D_PATH={0}".format(self.prefix.etc), ] - if 'default_library=shared' in self.spec: - args.extend(['--enable-shared', '--disable-static']) - elif 'default_library=static' in self.spec: - args.extend(['--disable-shared', '--enable-static']) - else: - args.extend(['--enable-shared', '--enable-static']) + args.append('--enable-static' if 'libs=static' in self.spec + else '--disable-static') + args.append('--enable-shared' if 'libs=shared' in self.spec + else '--disable-shared') configure(*args) |