commit 89b72c692f996926fa7d7edaf23ce71302ff7d21
Author: Nicolas Chauvet <kwizart(a)gmail.com>
Date: Fri Jan 1 12:56:27 2021 +0100
Fix compilation with gcc-11
amule.spec | 5 +++++
1 file changed, 5 insertions(+)
---
diff --git a/amule.spec b/amule.spec
index a65548e..b839ea2 100644
--- a/amule.spec
+++ b/amule.spec
@@ -54,6 +54,11 @@ It is useful for servers which don't have Xorg.
%setup -q -n %{name}-%{commit}
%build
+# Downgrade to c++14 to avoid conflict with std::byte
+#
https://github.com/amule-project/amule/issues/233
+%if 0%{?fedora} > 33 || 0%{?rhel} > 8
+export CXXFLAGS="%{optflags} -std=c++14"
+%endif
./autogen.sh
%configure \
--disable-rpath \