From bd94be818a48eb5566ca4dcaa4c180e673029cc4 Mon Sep 17 00:00:00 2001 From: Paschalis Korosoglou Date: Fri, 1 Dec 2017 15:25:23 +0200 Subject: Added variant static for hwloc (#6538) --- var/spack/repos/builtin/packages/hwloc/package.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'var') diff --git a/var/spack/repos/builtin/packages/hwloc/package.py b/var/spack/repos/builtin/packages/hwloc/package.py index 2af1cba322..e8d78a223e 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 @@ class Hwloc(AutotoolsPackage): "--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.) -- cgit v1.2.3-60-g2f50