libretro-pcsx-rearmed: fix PCSX ReARMed build to match upstream changes

This commit is contained in:
KOPRajs 2020-07-01 12:00:04 +02:00
parent 37eb46b40d
commit b6b4c7d7e0
2 changed files with 13 additions and 12 deletions

View File

@ -21,19 +21,20 @@ make_target() {
if target_has_feature neon; then
export HAVE_NEON=1
export BUILTIN_GPU=neon
else
export HAVE_NEON=0
fi
case $TARGET_ARCH in
aarch64)
make -f Makefile.libretro platform=aarch64 GIT_VERSION=$PKG_VERSION
make -f Makefile.libretro DYNAREC=lightrec platform=aarch64 GIT_VERSION=$PKG_VERSION
;;
arm)
make -f Makefile.libretro USE_DYNAREC=1 GIT_VERSION=$PKG_VERSION
make -f Makefile.libretro DYNAREC=ari64 GIT_VERSION=$PKG_VERSION
;;
x86_64)
make -f Makefile.libretro GIT_VERSION=$PKG_VERSION
make -f Makefile.libretro DYNAREC=lightrec GIT_VERSION=$PKG_VERSION
;;
esac
}

View File

@ -1,17 +1,17 @@
diff -Naur a/Makefile.libretro b/Makefile.libretro
--- a/Makefile.libretro 2016-05-05 20:28:57.000000000 -0700
+++ b/Makefile.libretro 2016-05-10 10:10:33.447118136 -0700
@@ -246,6 +246,14 @@
--- a/Makefile.libretro 2020-03-17 06:53:23.000000000 +0100
+++ b/Makefile.libretro 2020-06-22 16:00:10.616134362 +0200
@@ -380,6 +380,14 @@
ARCH = arm
USE_DYNAREC = 1
DYNAREC = ari64
+# aarch64
+else ifneq (,$(findstring aarch64,$(platform)))
+ TARGET := $(TARGET_NAME)_libretro.so
+ SHARED := -shared -Wl,--no-undefined
+ fpic := -fPIC
+ DRC_CACHE_BASE = 0
+ ARCH = aarch64
+ TARGET := $(TARGET_NAME)_libretro.so
+ SHARED := -shared -Wl,--no-undefined
+ fpic := -fPIC
+ DRC_CACHE_BASE = 0
+ ARCH = aarch64
+
# Windows
else