make: try to fix osx still not detecting things
[pcsx_rearmed.git] / Makefile.libretro
index e083467..5f43eea 100644 (file)
@@ -104,7 +104,7 @@ ifneq (,$(shell $(CC) -E -dD $(CFLAGS) include/arm_features.h | grep 'HAVE_NEON3
        BUILTIN_GPU = neon
 endif
 endif
-ifneq (,$(findstring $(ARCH_DETECTED),i686 x86_64 aarch64))
+ifneq (,$(findstring $(ARCH_DETECTED),i686 x86_64 arm64 aarch64))
        BUILTIN_GPU = neon
 endif
 
@@ -261,6 +261,14 @@ else ifeq ($(platform), arm64)
 else ifeq ($(platform), psl1ght)
        TARGET := $(TARGET_NAME)_libretro_psl1ght.a
        CFLAGS += -DBLARGG_BIG_ENDIAN=1 -D__ppc__
+       CFLAGS += -DNO_DYLIB
+       NO_UNDEF_CHECK := 1
+       STATIC_LINKING := 1
+       NO_MMAP := 1
+       NO_PTHREAD := 1
+       LIBPTHREAD :=
+       LIBDL :=
+       DYNAREC := 0 # missing sysconf()
 
 # PSP
 else ifeq ($(platform), psp1)
@@ -322,8 +330,10 @@ else ifneq (,$(filter $(platform),ngc wii wiiu))
        TARGET := $(TARGET_NAME)_libretro_$(platform).a
        ifeq ($(platform), ngc)
                CFLAGS += -DHW_DOL -mogc
+               DYNAREC := 0 # missing sysconf()
        else ifeq ($(platform), wii)
                CFLAGS += -DHW_RVL -mrvl
+               DYNAREC := 0 # missing sysconf()
        else ifeq ($(platform), wiiu)
                # -mwup was removed in newer devkitPPC versions
                CFLAGS += -DHW_WUP