[packages/live] - compilation with std::atomic_flag requires -std=c++20

qboosh qboosh at pld-linux.org
Tue Mar 5 19:36:13 CET 2024


commit 493e8507639a86e6ee7f4536a25116cc7a4a250d
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Tue Mar 5 19:17:09 2024 +0100

    - compilation with std::atomic_flag requires -std=c++20

 live.spec | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/live.spec b/live.spec
index ee86f8e..9f87722 100644
--- a/live.spec
+++ b/live.spec
@@ -104,7 +104,7 @@ cd live-static
 	CPLUSPLUS_COMPILER="%{__cxx}" \
 	CPPFLAGS="%{rpmcppflags} %{!?with_atomic_flag:-DNO_STD_LIB}" \
 	CFLAGS="%{rpmcflags} -fPIC" \
-	CXXFLAGS="%{rpmcxxflags} -fPIC"
+	CXXFLAGS="%{rpmcxxflags} -fPIC %{?with_atomic_flag:-std=c++20}"
 cd ..
 %endif
 
@@ -115,7 +115,7 @@ cd live-shared
 	CPLUSPLUS_COMPILER="%{__cxx}" \
 	CPPFLAGS="%{rpmcppflags} %{!?with_atomic_flag:-DNO_STD_LIB}" \
 	CFLAGS="%{rpmcflags}" \
-	CXXFLAGS="%{rpmcxxflags}" \
+	CXXFLAGS="%{rpmcxxflags} %{?with_atomic_flag:-std=c++20}" \
 	LIBRARY_LINK="%{__cxx} -o"
 
 %install
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/live.git/commitdiff/493e8507639a86e6ee7f4536a25116cc7a4a250d



More information about the pld-cvs-commit mailing list