From d78dd9a8e596459d97f2646a879158a68c9fa746 Mon Sep 17 00:00:00 2001 From: sdhizumi <31327231+sdhizumi@users.noreply.github.com> Date: Sun, 24 Dec 2023 12:39:20 +0900 Subject: [PATCH 1/2] Fix SHARED option for armv7 --- Makefile.libretro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.libretro b/Makefile.libretro index 9cab7e4bd79..cbc0dafd7f2 100644 --- a/Makefile.libretro +++ b/Makefile.libretro @@ -122,7 +122,7 @@ else ifeq ($(platform), goadvance) else ifeq ($(platform), classic_armv7_a7) TARGET := $(TARGET_NAME)_libretro.so fpic := -fPIC - SHARED := -shared -Wl,--version-script=link.T -Wl,--no-undefined + SHARED := -shared -Wl,--version-script=link.T -Wl,--no-undefined -fPIC CFLAGS += -Ofast \ -flto=4 -fwhole-program -fuse-linker-plugin \ -fdata-sections -ffunction-sections -Wl,--gc-sections \ From 399dace817a4ad15c112541922a51d3c53dc3453 Mon Sep 17 00:00:00 2001 From: sdhizumi <31327231+sdhizumi@users.noreply.github.com> Date: Sun, 24 Dec 2023 13:23:16 +0900 Subject: [PATCH 2/2] Makefile fix to enable build for "unix-armv7-hardfloat-neon" --- Makefile.libretro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.libretro b/Makefile.libretro index cbc0dafd7f2..e6aad542e8f 100644 --- a/Makefile.libretro +++ b/Makefile.libretro @@ -119,7 +119,7 @@ else ifeq ($(platform), goadvance) # (armv7 a7, hard point, neon based) ### # NESC, SNESC, C64 mini -else ifeq ($(platform), classic_armv7_a7) +else ifeq ($(platform),$(filter $(platform),classic_armv7_a7 unix-armv7-hardfloat-neon)) TARGET := $(TARGET_NAME)_libretro.so fpic := -fPIC SHARED := -shared -Wl,--version-script=link.T -Wl,--no-undefined -fPIC