From 6ad4d386b4b9c061b8e9a7e705338709778f7b4c Mon Sep 17 00:00:00 2001 From: Adrian Reber Date: Tue, 11 Jul 2023 13:15:12 +0000 Subject: [PATCH] tau: filter out -fstack-protector-strong The internal compiler of tau is really old and does not understand "-fstack-protector-strong". Signed-off-by: Adrian Reber --- components/perf-tools/tau/SPECS/tau.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/perf-tools/tau/SPECS/tau.spec b/components/perf-tools/tau/SPECS/tau.spec index a120ca0bd2..5fcfebcac2 100644 --- a/components/perf-tools/tau/SPECS/tau.spec +++ b/components/perf-tools/tau/SPECS/tau.spec @@ -204,7 +204,7 @@ find ${INSTALLROOT}/lib -type d -name 'static-*' -delete # Use find/replace function -- easy to add more as needed # Two stage, using much faster grep to target specific files replace_all() { - for f in $(grep -Ilr "$1" ${INSTALLROOT}); do + for f in $(grep -Ilr -- "$1" ${INSTALLROOT}); do sed -i "s|$1|$2|g" $f done } @@ -213,6 +213,7 @@ replace_all "${TAUROOT}/TAUBUILD" "" replace_all "${TAUROOT}" "" replace_all "${MPI_DIR}" "\${MPI_DIR}" replace_all "${PDTOOLKIT_DIR}" "\${PDTOOLKIT_DIR}" +replace_all "-fstack-protector-strong" "" %if "%{mpi_family}" == "impi" replace_all "${I_MPI_ROOT}" "\${I_MPI_ROOT}" %endif