From fd7506d9e161c301fd7b81280d0021b4a55bbda3ae1beef900592ff7766fbe96 Mon Sep 17 00:00:00 2001 From: Aaron Puchert Date: Sat, 14 Jan 2023 15:26:22 +0000 Subject: [PATCH] - Drop line breaks from flags. OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/llvm15?expand=0&rev=16 --- llvm15.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm15.spec b/llvm15.spec index 1b9bc4b..90f2bd0 100644 --- a/llvm15.spec +++ b/llvm15.spec @@ -900,7 +900,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 %{optflags} | sed 's/-D_FORTIFY_SOURCE=./-D_FORTIFY_SOURCE=0/;s/\\B-g\\b//g') +%global cleaned_flags %(echo -n %{optflags} | sed 's/-D_FORTIFY_SOURCE=./-D_FORTIFY_SOURCE=0/;s/\\B-g\\b//g') %global flags %{cleaned_flags} %ifarch armv6hl @@ -977,7 +977,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 %flags | sed 's/-fstack-clash-protection//'); + flags=$(echo -n %flags | sed 's/-fstack-clash-protection//'); fi # 4) Add -fno-plt: With -Wl,-z,now we don't need the PLT anymore, allowing us to # reduce the number of branches for the quite frequent cross-DSO calls. This