From 2e597851f8a9163b83a79350410a0abefb5d2985 Mon Sep 17 00:00:00 2001 From: Andrey Bondrov Date: Mon, 22 Jun 2020 12:57:33 +1000 Subject: [PATCH] Add -lstdc++ to ldflags --- libreoffice.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libreoffice.spec b/libreoffice.spec index 03cd9a1..0fa65ee 100644 --- a/libreoffice.spec +++ b/libreoffice.spec @@ -50,7 +50,7 @@ Summary: Office suite Name: libreoffice Epoch: 1 Version: 6.3.5 -Release: 8 +Release: 9 License: (MPLv1.1 or LGPLv3+) and LGPLv3 and LGPLv2+ and BSD and (MPLv1.1 or GPLv2 or LGPLv2 or Netscape) and Public Domain and ASL 2.0 and Artistic Group: Office Url: http://www.libreoffice.org @@ -908,6 +908,10 @@ export PATH export CCACHE_DIR=%{ccachedir} %endif +%if %{without clang} +%global ldflags %{ldflags} -lstdc++ +%endif + %setup_compile_flags %if %{with clang}