From 8daaee3ed604be4c1aca04b2fc0d4d30f8760793 Mon Sep 17 00:00:00 2001 From: "Seth R. Johnson" Date: Mon, 3 Jan 2022 05:21:15 -0500 Subject: [PATCH] ROOT: unset MACOSX_DEPLOYMENT_TARGET for macOS (#28163) --- var/spack/repos/builtin/packages/root/package.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/var/spack/repos/builtin/packages/root/package.py b/var/spack/repos/builtin/packages/root/package.py index 8af37a5a3f..ccdd9df03a 100644 --- a/var/spack/repos/builtin/packages/root/package.py +++ b/var/spack/repos/builtin/packages/root/package.py @@ -602,6 +602,11 @@ def add_include_path(dep_name): if '+opengl' in spec: add_include_path('glew') add_include_path('mesa-glu') + if 'platform=darwin' in spec: + # Newer deployment targets cause fatal errors in rootcling, so + # override with an empty value even though it may lead to link + # warnings when building against ROOT + env.unset('MACOSX_DEPLOYMENT_TARGET') def setup_run_environment(self, env): env.set('ROOTSYS', self.prefix)