epics-base package: use the Spack compiler wrappers (#39752)

Edit configuration file to use the Spack compiler wrappers.
This commit is contained in:
eflumerf 2023-09-07 15:28:57 -05:00 committed by GitHub
parent 5c409f794a
commit c5fc794d77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,6 +23,10 @@ class EpicsBase(MakefilePackage):
depends_on("readline")
depends_on("perl", type=("build", "run"))
def patch(self):
filter_file(r"^\s*CC\s*=.*", "CC = " + spack_cc, "configure/CONFIG.gnuCommon")
filter_file(r"^\s*CCC\s*=.*", "CCC = " + spack_cxx, "configure/CONFIG.gnuCommon")
@property
def install_targets(self):
return ["INSTALL_LOCATION={0}".format(self.prefix), "install"]