Accepting request 1270043 from devel:tools

- Make package build succeed with cmake 4.0

OBS-URL: https://build.opensuse.org/request/show/1270043
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/dwarves?expand=0&rev=45
This commit is contained in:
2025-04-18 14:14:19 +00:00
committed by Git OBS Bridge
2 changed files with 8 additions and 2 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Apr 16 13:37:28 UTC 2025 - Jan Engelhardt <jengelh@inai.de>
- Make package build succeed with cmake 4.0
-------------------------------------------------------------------
Tue Oct 1 08:35:14 UTC 2024 - Dirk Müller <dmueller@suse.com>

View File

@@ -104,12 +104,13 @@ for processing DWARF, a debugging data format for ELF files.
%build
sv="$PWD/lib.v"
ver=$(echo %version | cut -d+ -f1)
echo "DWARVES_$ver{ global: *; };" >"$sv"
echo "DWARVES_$ver { global: *; };" >"$sv"
%cmake \
%if 0%{?have_libbpf}
-DLIBBPF_EMBEDDED=OFF \
%endif
-DCMAKE_SHARED_LINKER_FLAGS:STRING="-Wl,--version-script=$sv"
-DCMAKE_SHARED_LINKER_FLAGS:STRING="-Wl,--version-script=$sv" \
-DCMAKE_POLICY_VERSION_MINIMUM=3.28
%cmake_build
%install