- Drop line breaks from flags.
OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/llvm15?expand=0&rev=16
This commit is contained in:
parent
8960de2413
commit
fd7506d9e1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user