- Correctly determine livepatching support

OBS-URL: https://build.opensuse.org/package/show/Base:System/glibc?expand=0&rev=727
This commit is contained in:
Andreas Schwab 2025-01-08 09:52:07 +00:00 committed by Git OBS Bridge
parent 23b7c8f1e6
commit d4ecb2ad0f
2 changed files with 23 additions and 7 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Jan 7 10:28:36 UTC 2025 - Andreas Schwab <schwab@suse.de>
- Correctly determine livepatching support
-------------------------------------------------------------------
Sun Jan 5 11:43:47 UTC 2025 - Andreas Schwab <schwab@suse.de>

View File

@ -61,13 +61,6 @@
%define with_gcc 13
%endif
# Enable support for livepatching.
%ifarch x86_64
%bcond_without livepatching
%else
%bcond_with livepatching
%endif
%bcond_with build_all
%define build_main 1
%define build_utils %{with build_all}
@ -103,6 +96,24 @@ ExclusiveArch: do_not_build
%endif
%define host_arch %{?cross_cpu}%{!?cross_cpu:%{_target_cpu}}
# Enable support for livepatching.
%define have_livepatching_support 0
%if %{build_cross}
%if "%{cross_arch}" == "x86_64"
%define have_livepatching_support 1
%endif
%else
%ifarch x86_64
%define have_livepatching_support 1
%endif
%endif
%if %{have_livepatching_support}
%bcond_without livepatching
%else
%bcond_with livepatching
%endif
%if %{build_main}
%define name_suffix %{nil}
%else