foxygit / fake-08-xbox360 Log in
commit fb8d3a07a7060ad98db35561cf201c4617ae9aff
Author:     jtothebell <j.to.the.bell@gmail.com>
AuthorDate: Tue Aug 30 17:11:26 2022 -0600
Commit:     jtothebell <j.to.the.bell@gmail.com>
CommitDate: Tue Aug 30 17:11:26 2022 -0600

    Try making mm lr core like unix
---
 platform/libretro/Makefile | 13 +++++++------
 platform/libretro/link.T   |  5 +++++
 2 files changed, 12 insertions(+), 6 deletions(-)

diff --git a/platform/libretro/Makefile b/platform/libretro/Makefile
index 0544a12..ac54def 100644
--- a/platform/libretro/Makefile
+++ b/platform/libretro/Makefile
@@ -72,11 +72,11 @@ ifeq ($(platform), unix)
 	EXT ?= so
    TARGET := $(TARGET_NAME)_libretro.$(EXT)
    fpic := -fPIC
-   SHARED := -shared -Wl,--version-script=$(CORE_DIR)/link.T -Wl,--no-undefined
+   SHARED := -shared -Wl,--version-script=link.T -Wl,--no-undefined
 else ifeq ($(platform), linux-portable)
    TARGET := $(TARGET_NAME)_libretro.$(EXT)
    fpic := -fPIC -nostdlib
-   SHARED := -shared -Wl,--version-script=$(CORE_DIR)/link.T
+   SHARED := -shared -Wl,--version-script=link.T
 	LIBM :=
 else ifneq (,$(findstring osx,$(platform)))
    TARGET := $(TARGET_NAME)_libretro.dylib
@@ -103,11 +103,11 @@ endif
 else ifneq (,$(findstring qnx,$(platform)))
 	TARGET := $(TARGET_NAME)_libretro_qnx.so
    fpic := -fPIC
-   SHARED := -shared -Wl,--version-script=$(CORE_DIR)/link.T -Wl,--no-undefined
+   SHARED := -shared -Wl,--version-script=link.T -Wl,--no-undefined
 else ifeq ($(platform), emscripten)
    TARGET := $(TARGET_NAME)_libretro_emscripten.bc
    fpic := -fPIC
-   SHARED := -shared -Wl,--version-script=$(CORE_DIR)/link.T -Wl,--no-undefined
+   SHARED := -shared -Wl,--version-script=link.T -Wl,--no-undefined
 else ifeq ($(platform), vita)
    TARGET := $(TARGET_NAME)_vita.a
    CC = arm-vita-eabi-gcc
@@ -121,11 +121,12 @@ else ifeq ($(platform), miyoomini)
    AR = arm-linux-gnueabihf-ar
    STRIP = arm-linux-gnueabihf-strip
    CXXFLAGS += -marm -mtune=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard -march=armv7ve
-	STATIC_LINKING = 1
+   fpic := -fPIC
+   SHARED := -shared -Wl,--version-script=link.T
 else
    CC = gcc
    TARGET := $(TARGET_NAME)_libretro.dll
-   SHARED := -shared -static-libgcc -static-libstdc++ -s -Wl,--version-script=$(CORE_DIR)/link.T -Wl,--no-undefined
+   SHARED := -shared -static-libgcc -static-libstdc++ -s -Wl,--version-script=link.T -Wl,--no-undefined
 endif

 LDFLAGS += $(LIBM)
diff --git a/platform/libretro/link.T b/platform/libretro/link.T
new file mode 100644
index 0000000..b0c262d
--- /dev/null
+++ b/platform/libretro/link.T
@@ -0,0 +1,5 @@
+{
+   global: retro_*;
+   local: *;
+};
+