commit 41527f29f39b1255d2cc2dd8a6c35bbebf7ab897
Author: Leigh Scott <leigh123linux(a)gmail.com>
Date: Sun Aug 7 22:28:01 2022 +0100
Fix build issue
fix_compile_issue.patch | 11 +++++++++++
ppsspp.spec | 2 ++
2 files changed, 13 insertions(+)
---
diff --git a/fix_compile_issue.patch b/fix_compile_issue.patch
new file mode 100644
index 0000000..23afb80
--- /dev/null
+++ b/fix_compile_issue.patch
@@ -0,0 +1,11 @@
+--- a/ffmpeg/configure
++++ b/ffmpeg/configure
+@@ -5286,7 +5286,7 @@ check_func ${malloc_prefix}memalign
+ check_func ${malloc_prefix}posix_memalign && enable posix_memalign
+
+ check_func access
+-check_func arc4random
++check_func_headers stdlib.h arc4random
+ check_func_headers time.h clock_gettime || { check_func_headers time.h clock_gettime
-lrt && add_extralibs -lrt && LIBRT="-lrt"; }
+ check_func fcntl
+ check_func fork
diff --git a/ppsspp.spec b/ppsspp.spec
index f7fab6f..08c4939 100644
--- a/ppsspp.spec
+++ b/ppsspp.spec
@@ -115,6 +115,7 @@ Patch0: %{name}-1.1.0-git-version.patch
Patch2: %{name}-ffmpeg-set_x64_build_flags.patch
Patch3: %{name}-ffmpeg-set_aarch64_build_flags.patch
Patch4: %{name}-ffmpeg-set_arm_build_flags.patch
+Patch5: fix_compile_issue.patch
BuildRequires: pkgconfig(egl)
BuildRequires: pkgconfig(glesv2)
@@ -199,6 +200,7 @@ PPSSPP with Qt5 frontend wrapper.
%patch2 -p1 -b .backup
%patch3 -p1 -b .backup
%patch4 -p1 -b .backup
+%patch5 -p1 -b .backup
%endif
# Remove bundled libraries