[packages/Field3D] force c++14 standard to fix build with gcc 11
atler
atler at pld-linux.org
Tue Aug 10 17:57:26 CEST 2021
commit dd2284ffc6befbd828d0174277d74153b12ff1d5
Author: Jan Palus <atler at pld-linux.org>
Date: Tue Aug 10 17:55:03 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 Field3D (indirectly through OpenEXR headers). use c++14
instead which gcc defaulted to at the time last version was released.
Field3D.spec | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/Field3D.spec b/Field3D.spec
index 5aaacc0..4c48788 100644
--- a/Field3D.spec
+++ b/Field3D.spec
@@ -66,6 +66,7 @@ Dokumentacja API biblioteki Field3D.
# main build system is scons, but there is cmake alternative, which is slightly more usable in rpm building
install -d build
cd build
+export CXXFLAGS="%{rpmcxxflags} %{rpmcppflags} -std=c++14"
%cmake ..
%{__make}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/Field3D.git/commitdiff/10965d9feece7457ddd263c3b2d8ab65907b1413
More information about the pld-cvs-commit
mailing list