2 Commits

2 changed files with 8 additions and 2 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Jun 19 11:15:01 UTC 2025 - Andreas Stieger <andreas.stieger@gmx.de>
- Build with C++17 for googletest 1.17 boo#1244989
-------------------------------------------------------------------
Mon Mar 25 05:43:50 UTC 2024 - David Disseldorp <ddiss@suse.de>

View File

@@ -2,6 +2,7 @@
# spec file for package leveldb
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 Andreas Stieger <Andreas.Stieger@gmx.de>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -80,11 +81,11 @@ This package holds the development files for statically linking leveldb.
%build
# unfortunately a two-pass build is needed for shared and static libs
%global _lto_cflags %{_lto_cflags} -ffat-lto-objects
%cmake -DBUILD_SHARED_LIBS=ON -DCMAKE_CXX_STANDARD=14
%cmake -DBUILD_SHARED_LIBS=ON -DCMAKE_CXX_STANDARD=17
%cmake_build
cd ..
%define __builddir build_static
%cmake -DBUILD_SHARED_LIBS=OFF -DCMAKE_CXX_STANDARD=14
%cmake -DBUILD_SHARED_LIBS=OFF -DCMAKE_CXX_STANDARD=17
%cmake_build
%install