[packages/roc-toolkit] fix build on aarch64 by raising c++ std to c++11
atler
atler at pld-linux.org
Thu Apr 28 12:17:23 CEST 2022
commit e72dc86e8b78d64b4525435207a7ff327f48cdef
Author: Jan Palus <jpalus at fastmail.com>
Date: Thu Apr 28 12:14:58 2022 +0200
fix build on aarch64 by raising c++ std to c++11
see https://github.com/roc-streaming/roc-toolkit/issues/472
aarch64.patch | 11 +++++++++++
roc-toolkit.spec | 2 ++
2 files changed, 13 insertions(+)
---
diff --git a/roc-toolkit.spec b/roc-toolkit.spec
index 7274ff3..ed9d0bf 100644
--- a/roc-toolkit.spec
+++ b/roc-toolkit.spec
@@ -14,6 +14,7 @@ Group: Libraries
Source0: https://github.com/roc-streaming/roc-toolkit/archive/v%{version}/%{name}-%{version}.tar.gz
# Source0-md5: 6ce4875947fc8ca0598c9ccd4f6b05bb
Patch0: %{name}-scons4.patch
+Patch1: aarch64.patch
URL: https://github.com/roc-streaming/roc-toolkit
BuildRequires: alsa-lib-devel
BuildRequires: doxygen
@@ -90,6 +91,7 @@ Dokumentacja API biblioteki ROC.
%prep
%setup -q
%patch0 -p1
+%patch1 -p1
%build
# docs build seems racy, use -j1
diff --git a/aarch64.patch b/aarch64.patch
new file mode 100644
index 0000000..aa5004c
--- /dev/null
+++ b/aarch64.patch
@@ -0,0 +1,11 @@
+--- roc-toolkit-0.1.5/SConstruct.orig 2022-04-28 12:06:30.088777335 +0200
++++ roc-toolkit-0.1.5/SConstruct 2022-04-28 12:11:51.576780853 +0200
+@@ -1051,7 +1051,7 @@
+
+ if compiler in ['gcc', 'clang']:
+ env.Append(CXXFLAGS=[
+- '-std=c++98',
++ '-std=c++11',
+ '-fno-exceptions',
+ ])
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/roc-toolkit.git/commitdiff/e72dc86e8b78d64b4525435207a7ff327f48cdef
More information about the pld-cvs-commit
mailing list