Rename variant static to shared (#6543)

This commit is contained in:
Paschalis Korosoglou 2017-12-04 01:19:32 +02:00 committed by Christoph Junghans
parent 13dade60dd
commit 79751729c9

View file

@ -58,7 +58,7 @@ class Hwloc(AutotoolsPackage):
variant('libxml2', default=True, description="Build with libxml2")
variant('pci', default=(sys.platform != 'darwin'),
description="Support analyzing devices on PCI bus")
variant('static', default=False, description="Build static libraries")
variant('shared', default=True, description="Build shared libraries")
depends_on('cuda', when='+cuda')
depends_on('libpciaccess', when='+pci')
@ -74,7 +74,7 @@ def configure_args(self):
"--enable-cuda" if '+cuda' in spec else "--disable-cuda",
"--enable-libxml2" if '+libxml2' in spec else "--disable-libxml2",
"--enable-pci" if '+pci' in spec else "--disable-pci",
"--enable-static" if '+static' in spec else "--disable-static",
"--enable-shared" if '+shared' in spec else "--disable-shared",
# Disable OpenCL, since hwloc might pick up an OpenCL
# library at build time that is then not found at run time
# (Alternatively, we could require OpenCL as dependency.)