diff options
Diffstat (limited to 'var/spack/repos/builtin/packages/xz/package.py')
-rw-r--r-- | var/spack/repos/builtin/packages/xz/package.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/xz/package.py b/var/spack/repos/builtin/packages/xz/package.py index 1162d21e65..5197fb1349 100644 --- a/var/spack/repos/builtin/packages/xz/package.py +++ b/var/spack/repos/builtin/packages/xz/package.py @@ -29,6 +29,12 @@ class Xz(AutotoolsPackage, SourceforgePackage): variant('pic', default=False, description='Compile with position independent code.') + variant('libs', default='shared,static', values=('shared', 'static'), + multi=True, description='Build shared libs, static libs or both') + + def configure_args(self): + return self.enable_or_disable('libs') + def flag_handler(self, name, flags): if name == 'cflags' and '+pic' in self.spec: flags.append(self.compiler.cc_pic_flag) |