From d0bd313450d1001d693642a58f14db55a106ee7cddb61d1db2e45567ab86822d Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Mon, 18 Mar 2024 14:18:12 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/devel:microos/abseil-cpp?expand=0&rev=31 --- abseil-cpp.spec | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/abseil-cpp.spec b/abseil-cpp.spec index c15a9ea..0a16ca0 100644 --- a/abseil-cpp.spec +++ b/abseil-cpp.spec @@ -30,14 +30,9 @@ Source0: https://github.com/abseil/%{name}/archive/refs/tags/%{version}.t Source1: baselibs.conf BuildRequires: cmake BuildRequires: fdupes +BuildRequires: gcc%{?with_gcc} +BuildRequires: gcc%{?with_gcc}-c++ BuildRequires: pkgconfig -%if 0%{?with_gcc:1} -BuildRequires: gcc%{with_gcc} -BuildRequires: gcc%{with_gcc}-c++ -%else -BuildRequires: gcc -BuildRequires: gcc-c++ -%endif # PATCH-FIX-OPENSUSE options-{old,cxx17}.patch Ensure ABI stability regardless of compiler options %if 0%{?suse_version} && 0%{?suse_version} < 1550 Patch0: options-old.patch @@ -74,7 +69,7 @@ This package contains headers and build system files for it. %autosetup -p1 %build -%if 0%{?with_gcc:1} +%if 0%{?with_gcc} export CC="gcc-%{with_gcc}" export CXX="g++-%{with_gcc}" %endif