From 136022936e9fb0c4342b663f3524cb73ca072e32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= Date: Thu, 24 Sep 2020 17:16:06 +0200 Subject: [PATCH] libretro-mupen64plus: fix build w/ gcc10 --- srcpkgs/libretro-mupen64plus/patches/add-string.patch | 10 ++++++++++ srcpkgs/libretro-mupen64plus/template | 2 ++ 2 files changed, 12 insertions(+) create mode 100644 srcpkgs/libretro-mupen64plus/patches/add-string.patch diff --git a/srcpkgs/libretro-mupen64plus/patches/add-string.patch b/srcpkgs/libretro-mupen64plus/patches/add-string.patch new file mode 100644 index 00000000000..5d69eee3ac2 --- /dev/null +++ b/srcpkgs/libretro-mupen64plus/patches/add-string.patch @@ -0,0 +1,10 @@ +--- GLideN64/src/ShaderUtils.h 2019-05-31 19:25:22.000000000 +0200 ++++ GLideN64/src/ShaderUtils.h 2020-09-24 17:12:36.260736024 +0200 +@@ -3,6 +3,7 @@ + + #include "OpenGL.h" + #include "Combiner.h" ++#include + + GLuint createShaderProgram(const char * _strVertex, const char * _strFragment); + bool checkShaderCompileStatus(GLuint obj); diff --git a/srcpkgs/libretro-mupen64plus/template b/srcpkgs/libretro-mupen64plus/template index 0543fa4da8f..81adcec5d65 100644 --- a/srcpkgs/libretro-mupen64plus/template +++ b/srcpkgs/libretro-mupen64plus/template @@ -24,6 +24,8 @@ case "$XBPS_TARGET_MACHINE" in armv*|aarch64*) build_options_default="gles";; esac +CFLAGS="-fcommon" + do_build() { local _args