add workaround for chromium chrashes with SIGILL on BTI capable systems (Apple M2)

epel9
Than Ngo 1 year ago
parent 0ccb10a2c6
commit c85b98f7c6

@ -1071,6 +1071,14 @@ FLAGS+=' -Wno-unused-but-set-variable -Wno-unused-result -Wno-unused-function -W
FLAGS+=' -Wno-unused-const-variable -Wno-unneeded-internal-declaration -Wno-unknown-attributes'
%endif
# Workaround for https://bugzilla.redhat.com/show_bug.cgi?id=2239523
# Disable BTI until this is fixed upstream.
%ifarch aarch64
%if 0%{?fedora}
FLAGS="${FLAGS/-mbranch-protection=standard/-mbranch-protection=none}"
%endif
%endif
%if %{system_build_flags}
CFLAGS=${CFLAGS/-g }
CFLAGS=${CFLAGS/-fexceptions}

Loading…
Cancel
Save