SHA256
1
0
forked from pool/orthanc

Accepting request 1156019 from home:mlin7442:rebuild_fails_156

fix Leap build

OBS-URL: https://build.opensuse.org/request/show/1156019
OBS-URL: https://build.opensuse.org/package/show/graphics/orthanc?expand=0&rev=66
This commit is contained in:
Axel Braun 2024-03-07 19:32:48 +00:00 committed by Git OBS Bridge
parent e44ca4eb8b
commit 835c139d2c
2 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Mar 7 15:13:59 UTC 2024 - Max Lin <mlin@suse.com>
- Build orthanc with gcc13 on Leap 15
-------------------------------------------------------------------
Fri Feb 2 11:54:18 UTC 2024 - Axel Braun <axel.braun@gmx.de>

View File

@ -45,7 +45,11 @@ BuildRequires: curl-devel
BuildRequires: dcmtk
BuildRequires: dcmtk-devel
BuildRequires: doxygen
%if 0%{?suse_version} == 1500 && 0%{?sle_version} > 150200
BuildRequires: gcc13-c++
%else
BuildRequires: gcc-c++
%endif
BuildRequires: googletest-devel
BuildRequires: help2man
BuildRequires: jsoncpp-devel
@ -141,6 +145,10 @@ mkdir -p OrthancServer/ThirdPartyDownloads
cp %{S:10} %{S:11} %{S:12} %{S:13} OrthancServer/ThirdPartyDownloads/.
%build
%if 0%{?suse_version} == 1500 && 0%{?sle_version} > 150200
export CC=gcc-13
export CXX=g++-13
%endif
%cmake ../OrthancServer \
-DSTANDALONE_BUILD:BOOL=ON \
-DSTATIC_BUILD:BOOL=OFF \