diff --git a/SPECS/gcc.spec b/SPECS/gcc.spec index d5bad9e..3436859 100644 --- a/SPECS/gcc.spec +++ b/SPECS/gcc.spec @@ -113,16 +113,16 @@ %ifarch x86_64 %global multilib_32_arch i686 %endif -#%if 0%{?rhel} == 9 -#%ifarch x86_64 -#%global build_cross 1 -#%else -#%global build_cross 0 -#%endif -#%else -#%dnl rhel != 9 +%if 0%{?rhel} == 9 && %{undefined msvsphere} +%ifarch x86_64 +%global build_cross 1 +%else +%global build_cross 0 +%endif +%else +%dnl rhel != 9 %global build_cross 0 -#%endif +%endif # TODO: Add ppc64le-redhat-linux s390x-redhat-linux later. %global cross_targets aarch64-redhat-linux Summary: Various compilers (C, C++, Objective-C, ...) @@ -3573,9 +3573,9 @@ end %changelog * Tue May 16 2023 Sergey Cherevko - 11.3.1-4.3.inferit -- Cross-compiler-aarch64 build disabled - Sets bug tracker URL to https://bugs.msvsphere.ru/ -- Rebuilt for MSVSphere 9.2. +- Disables aarch64 cross compiler build +- Rebuilt for MSVSphere 9.2 * Wed Dec 21 2022 Marek Polacek 11.3.1-4.3 - compile the cross binaries as PIE/-z now (#2155452)