Apply set_build_flags on rhel

This commit is contained in:
Josh Stone 2023-05-09 20:02:43 -07:00
parent 8745dbe4c6
commit ff66501ce9
1 changed files with 6 additions and 0 deletions

View File

@ -787,6 +787,9 @@ for triple in %{?mingw_targets} %{?wasm_targets}; do
done
%install
%if 0%{?rhel} && 0%{?rhel} <= 9
%{?set_build_flags}
%endif
%{export_rust_env}
DESTDIR=%{buildroot} %{__python3} ./x.py install
@ -874,6 +877,9 @@ rm -f %{buildroot}%{rustlibdir}/%{rust_triple}/bin/rust-ll*
%check
%if 0%{?rhel} && 0%{?rhel} <= 9
%{?set_build_flags}
%endif
%{export_rust_env}
# Sanity-check the installed binaries, debuginfo-stripped and all.