From c17740e6fb49b8f4d6955c07f820c93e9e992472 Mon Sep 17 00:00:00 2001 From: 5schatten Date: Mon, 1 Oct 2018 21:24:39 +0200 Subject: [PATCH] libretro-genplus: bus error fix for non RPi arm based systems Fixes a bus error, the makefile already sets this flag for RPi based systems but not for other arm platforms like the AML S905 chips. See https://github.com/ekeeke/Genesis-Plus-GX/issues/158 for further details. --- packages/emulation/libretro-genplus/package.mk | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/emulation/libretro-genplus/package.mk b/packages/emulation/libretro-genplus/package.mk index 5beffad93d..5d04201852 100644 --- a/packages/emulation/libretro-genplus/package.mk +++ b/packages/emulation/libretro-genplus/package.mk @@ -20,7 +20,11 @@ PKG_LIBPATH="$PKG_LIBNAME" PKG_LIBVAR="GENPLUS_LIB" make_target() { - make -f Makefile.libretro + if [ "$ARCH" = "arm" ]; then + CFLAGS="$CFLAGS -DALIGN_LONG" + fi + + make -f Makefile.libretro GIT_VERSION=$PKG_VERSION } makeinstall_target() {