[packages/boost/DEVEL-boost-1.68] - don't degrade to C++ 11 from default C++ >= 14 when using gcc 6 or higher
qboosh
qboosh at pld-linux.org
Fri Oct 12 21:26:55 CEST 2018
commit 505467da2e13ca8e1403225a9a0eada63e19e999
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Fri Oct 12 21:30:20 2018 +0200
- don't degrade to C++ 11 from default C++ >= 14 when using gcc 6 or higher
boost.spec | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/boost.spec b/boost.spec
index 9fba0b1..e28c0d5 100644
--- a/boost.spec
+++ b/boost.spec
@@ -488,8 +488,13 @@ Dokumentacja dla biblioteki Boost C++.
%patch203 -p0
%patch221 -p1
+%if "%{cc_version}" < "6.0"
+CPPSTD="-std=c++11"
+%else
+CPPSTD=
+%endif
cat << EOF > tools/build/src/user-config.jam
-using gcc : %{cxx_version} : %{__cxx} : <cflags>"%{rpmcflags} -fPIC" <cxxflags>"%{rpmcxxflags} -std=c++11 -fPIC" <linkflags>"%{rpmldflags}" ;
+using gcc : %{cxx_version} : %{__cxx} : <cflags>"%{rpmcflags} -fPIC" <cxxflags>"%{rpmcxxflags} $CPPSTD -fPIC" <linkflags>"%{rpmldflags}" ;
EOF
# cleanup backups after patching
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/boost.git/commitdiff/505467da2e13ca8e1403225a9a0eada63e19e999
More information about the pld-cvs-commit
mailing list