Skip to content

Commit

Permalink
tau: filter out -fstack-protector-strong
Browse files Browse the repository at this point in the history
The internal compiler of tau is really old and does not understand
"-fstack-protector-strong".

Signed-off-by: Adrian Reber <areber@redhat.com>
  • Loading branch information
adrianreber committed Jul 11, 2023
1 parent 9346de2 commit 6ad4d38
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/perf-tools/tau/SPECS/tau.spec
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand All @@ -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
Expand Down

0 comments on commit 6ad4d38

Please sign in to comment.