[packages/source-highlight] force c++14 standard to fix build with gcc 11
atler
atler at pld-linux.org
Mon Aug 9 21:00:50 CEST 2021
commit cdaab9be73b7df89440a0d356094203ba2e1b3e4
Author: Jan Palus <atler at pld-linux.org>
Date: Mon Aug 9 20:48:33 2021 +0200
force c++14 standard to fix build with gcc 11
gcc 11 defaults to c++17 which breaks build due to dynamic throw clauses
still used in source-highlight. use c++14 instead which gcc 9 defaulted
to at the time last version was released.
source-highlight.spec | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/source-highlight.spec b/source-highlight.spec
index 8207200..049a4e8 100644
--- a/source-highlight.spec
+++ b/source-highlight.spec
@@ -89,6 +89,7 @@ source-highlight.
%patch0 -p1
%build
+export CXXFLAGS="%{rpmcxxflags} -std=c++14"
%configure \
--with-boost-libdir=%{_libdir}
%{__make}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/source-highlight.git/commitdiff/835cf0b036be55c08a990e232917506881bb7b7b
More information about the pld-cvs-commit
mailing list