diff --git a/llvm15.spec b/llvm15.spec index 262346a..bc219da 100644 --- a/llvm15.spec +++ b/llvm15.spec @@ -903,7 +903,7 @@ mv libcxxabi-%{_version}.src projects/libcxxabi # hardening. The problem is in sanitizers from compiler-rt. # 2) Remove the -g. We don't want it in stage1 and it will be added by cmake in # the following stage. -%global cleaned_flags %(echo -n %{optflags} | sed 's/-D_FORTIFY_SOURCE=./-D_FORTIFY_SOURCE=0/;s/\\B-g\\b//g') +%global cleaned_flags %(echo %{optflags} | sed 's/-D_FORTIFY_SOURCE=./-D_FORTIFY_SOURCE=0/;s/\\B-g\\b//g') %global flags %{cleaned_flags} %ifarch armv6hl @@ -980,7 +980,7 @@ find ./stage1 \( -name '*.o' -or -name '*.a' \) -delete # step, which uses -Werror, from recognizing the availability of other flags. if ! ./stage1/bin/clang -c -xc -Werror -fstack-clash-protection -o /dev/null /dev/null; then - flags=$(echo -n %flags | sed 's/-fstack-clash-protection//'); + flags=$(echo %flags | sed 's/-fstack-clash-protection//'); fi # 4) Add -fno-plt: With -Wl,-z,now the PLT is basically dead code, so we can # now go the direct route for quite frequent cross-DSO calls. This reduces