From 1f4ecf8ce00234621ff1db52f8b6355edb54fedc Mon Sep 17 00:00:00 2001 From: fewtarius Date: Sat, 5 Nov 2022 07:43:45 -0400 Subject: [PATCH] Fixing mame. --- packages/games/libretro/mame/package.mk | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/packages/games/libretro/mame/package.mk b/packages/games/libretro/mame/package.mk index d1e545478..adfbc955f 100644 --- a/packages/games/libretro/mame/package.mk +++ b/packages/games/libretro/mame/package.mk @@ -16,10 +16,13 @@ PKG_BUILD_FLAGS="-lto" case ${TARGET_ARCH} in arm|aarch64) - PLATFORM=arm64 + MAME_PLATFORM="PLATFORM=arm64" + CROSS_BUILD="1" + PTR64=0 ;; - x86_64) - PLATFORM=x86_64 + *) + CROSS_BUILD="0" + PTR64=1 ;; esac @@ -27,16 +30,16 @@ PKG_MAKE_OPTS_TARGET="REGENIE=1 \ VERBOSE=1 \ NOWERROR=1 \ OPENMP=1 \ - CROSS_BUILD=1 \ + CROSS_BUILD=${CROSS_BUILD} \ TOOLS=0 \ RETRO=1 \ - PTR64=0 \ + PTR64=${PTR64} \ NOASM=0 \ PYTHON_EXECUTABLE=python3 \ CONFIG=libretro \ LIBRETRO_OS=unix \ LIBRETRO_CPU= \ - PLATFORM=${PLATFORM} \ + ${MAME_PLATFORM} \ ARCH= \ TARGET=mame \ SUBTARGET=mame \