diff --git a/var/spack/repos/builtin/packages/hwloc/package.py b/var/spack/repos/builtin/packages/hwloc/package.py index 2af1cba3220..e8d78a223eb 100644 --- a/var/spack/repos/builtin/packages/hwloc/package.py +++ b/var/spack/repos/builtin/packages/hwloc/package.py @@ -58,6 +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") depends_on('cuda', when='+cuda') depends_on('libpciaccess', when='+pci') @@ -73,6 +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", # 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.)