[packages/grcompiler] force c++98 standard to fix build with gcc 11

atler atler at pld-linux.org
Mon Aug 16 20:26:56 CEST 2021


commit 263247a4b5af0304aa4b60d0f3cc2bd5a13d2c5d
Author: Jan Palus <atler at pld-linux.org>
Date:   Mon Aug 16 20:25:05 2021 +0200

    force c++98 standard to fix build with gcc 11
    
    gcc 11 defaults to c++17 which breaks build due to dynamic throw clauses
    still used in grcompiler. use c++98 instead which gcc defaulted to at
    the time last version was released.

 grcompiler.spec | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/grcompiler.spec b/grcompiler.spec
index 0cf0d5b..e18bdad 100644
--- a/grcompiler.spec
+++ b/grcompiler.spec
@@ -41,6 +41,7 @@ cd test/GrcRegressionTest
 %{__autoconf}
 %{__automake}
 cd ../..
+export CXXFLAGS="%{rpmcxxflags} -std=c++98"
 %configure \
 	DOCBOOK2MAN=/usr/bin/docbook2X2man
 %{__make}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/grcompiler.git/commitdiff/263247a4b5af0304aa4b60d0f3cc2bd5a13d2c5d



More information about the pld-cvs-commit mailing list