diff --git a/var/spack/repos/builtin/packages/clfft/package.py b/var/spack/repos/builtin/packages/clfft/package.py index 38deb524c7796d..a51360a6085e96 100644 --- a/var/spack/repos/builtin/packages/clfft/package.py +++ b/var/spack/repos/builtin/packages/clfft/package.py @@ -35,6 +35,12 @@ class Clfft(CMakePackage): root_cmakelists_dir = "src" + def flag_handler(self, name, flags): + if name == "cxxflags": + # https://github.com/clMathLibraries/clFFT/issues/237 + flags.append("-fpermissive") + return (flags, None, None) + def cmake_args(self): args = [ self.define_from_variant("BUILD_CLIENT", "client"),