From 02db630985aed5609f36686b349c76fc7fd9b346 Mon Sep 17 00:00:00 2001 From: Erik Schnetter Date: Sat, 11 Mar 2017 21:59:06 -0500 Subject: [PATCH] hwloc: Disable OpenCL (#2854) * hwloc: Disable OpenCL * hwloc: Convert `install` to `configure_args` --- var/spack/repos/builtin/packages/hwloc/package.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/var/spack/repos/builtin/packages/hwloc/package.py b/var/spack/repos/builtin/packages/hwloc/package.py index 68c92b3aff..b5f6bf9951 100644 --- a/var/spack/repos/builtin/packages/hwloc/package.py +++ b/var/spack/repos/builtin/packages/hwloc/package.py @@ -53,3 +53,9 @@ class Hwloc(AutotoolsPackage): def url_for_version(self, version): return "http://www.open-mpi.org/software/hwloc/v%s/downloads/hwloc-%s.tar.gz" % (version.up_to(2), version) + + def configure_args(self): + # 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.) + return ["--disable-opencl"]