summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/spack/spack/build_systems/autotools.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/spack/spack/build_systems/autotools.py b/lib/spack/spack/build_systems/autotools.py
index 8073abef93..e651723e01 100644
--- a/lib/spack/spack/build_systems/autotools.py
+++ b/lib/spack/spack/build_systems/autotools.py
@@ -427,15 +427,15 @@ To resolve this problem, please try the following:
x.filter(regex="-nostdlib", repl="", string=True)
rehead = r"/\S*/"
for o in [
- "fjhpctag.o",
- "fjcrt0.o",
- "fjlang08.o",
- "fjomp.o",
- "crti.o",
- "crtbeginS.o",
- "crtendS.o",
+ r"fjhpctag\.o",
+ r"fjcrt0\.o",
+ r"fjlang08\.o",
+ r"fjomp\.o",
+ r"crti\.o",
+ r"crtbeginS\.o",
+ r"crtendS\.o",
]:
- x.filter(regex=(rehead + o), repl="", string=True)
+ x.filter(regex=(rehead + o), repl="")
elif self.pkg.compiler.name == "dpcpp":
# Hack to filter out spurious predep_objects when building with Intel dpcpp
# (see https://github.com/spack/spack/issues/32863):