From 17a67b9a566e0408a2ede14304816579bcda57a7 Mon Sep 17 00:00:00 2001 From: Gilles Gouaillardet Date: Mon, 16 Jan 2023 23:56:13 +0900 Subject: fix libtool filter for Fujitsu compilers (#34916) Since legit regular expressions are matched, do not pass string=True to the filter Refs #34897 --- lib/spack/spack/build_systems/autotools.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'lib') 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): -- cgit v1.2.3-60-g2f50