Skip to content

Commit

Permalink
Update EPICS to use Spack compiler wrappers instead of /usr/bin/gcc (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
eflumerf authored Sep 8, 2023
1 parent 481a3ae commit 2879326
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions var/spack/repos/builtin/packages/epics-base/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down

0 comments on commit 2879326

Please sign in to comment.