- Undo unnecessary changes.
OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/llvm15?expand=0&rev=19
This commit is contained in:
parent
cdc7a41102
commit
d0057caff2
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user