Ensure if TCL is already sourced on the system the lib paths don't interfere with spack's install step (#49325)

This commit is contained in:
Chris Marsh 2025-03-05 20:48:04 -06:00 committed by GitHub
parent 170a276f18
commit aa86342814
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -182,6 +182,12 @@ def setup_dependent_build_environment(self, env, dependent_spec):
class AutotoolsBuilder(AnyBuilder, spack.build_systems.autotools.AutotoolsBuilder):
configure_directory = "unix"
# if TCL is present on the system this may be set to the system's
# existing TCL so ensure it is unset
# https://wiki.tcl-lang.org/page/TCL%5FLIBRARY
def setup_build_environment(self, env):
env.set("TCL_LIBRARY", "")
def install(self, pkg, spec, prefix):
with working_dir(self.build_directory):
make("install")