X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Makefile.libretro;h=8151180f48f799da7ca4c34eab30af1c696b2c59;hb=81a5a2076b19c03cb596909ac417208752ca948a;hp=222941d4378ac2e0fbaf92c4f87c3684626ae125;hpb=7af838c45de8d323fd7a005e02eb142d1bbc9689;p=pcsx_rearmed.git diff --git a/Makefile.libretro b/Makefile.libretro index 222941d4..8151180f 100644 --- a/Makefile.libretro +++ b/Makefile.libretro @@ -124,7 +124,6 @@ endif else ifneq (,$(findstring CortexA73_G12B,$(platform))) TARGET := $(TARGET_NAME)_libretro.so fpic := -fPIC - SHARED := -shared -Wl,-version-script=link.T ARCH = arm64 BUILTIN_GPU = neon HAVE_NEON = 1 @@ -136,7 +135,6 @@ else ifneq (,$(findstring CortexA73_G12B,$(platform))) else ifneq (,$(findstring h5,$(platform))) TARGET := $(TARGET_NAME)_libretro.so fpic := -fPIC - SHARED := -shared -Wl,-version-script=link.T ARCH = arm64 BUILTIN_GPU = neon HAVE_NEON = 1 @@ -449,8 +447,7 @@ else ifeq ($(platform), classic_armv7_a7) TARGET := $(TARGET_NAME)_libretro.so fpic := -fPIC CFLAGS += -Ofast \ - -flto=4 -fwhole-program -fuse-linker-plugin \ - -fdata-sections -ffunction-sections -Wl,--gc-sections \ + -flto=auto -fuse-linker-plugin \ -fno-stack-protector -fno-ident -fomit-frame-pointer \ -falign-functions=1 -falign-jumps=1 -falign-loops=1 \ -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-unroll-loops \ @@ -480,7 +477,8 @@ else ifeq ($(platform), classic_armv8_a35) TARGET := $(TARGET_NAME)_libretro.so fpic := -fPIC CFLAGS += -Ofast \ - -fmerge-all-constants -fno-math-errno -march=armv8-a \ + -fmerge-all-constants -fno-math-errno \ + -fno-stack-protector -fomit-frame-pointer \ -marm -mcpu=cortex-a35 -mtune=cortex-a35 -mfpu=neon-fp-armv8 -mfloat-abi=hard HAVE_NEON = 1 HAVE_NEON_ASM = 1 @@ -540,7 +538,6 @@ else ifeq ($(platform), miyoo) else ifeq ($(platform), emscripten) TARGET := $(TARGET_NAME)_libretro_$(platform).bc fpic := -fPIC - SHARED := -shared -Wl,--no-undefined -Wl,--version-script=link.T CFLAGS += -DNO_DYLIB DYNAREC = STATIC_LINKING = 1 @@ -581,7 +578,13 @@ ifndef HAVE_NEON_ASM HAVE_NEON_ASM = $(shell $(CC) -E -dD $(CFLAGS) include/arm_features.h | grep -q HAVE_NEON32 && echo 1 || echo 0) endif ifeq ($(NO_UNDEF_CHECK)$(shell $(LD) -v 2> /dev/null | awk '{print $$1}'),GNU) -MAIN_LDFLAGS += -Wl,--no-undefined + ifeq (,$(findstring $(platform),win32)) + MAIN_LDFLAGS += -Wl,-version-script=frontend/link.T + endif + ifneq ($(STATIC_LINKING), 1) + CFLAGS += -ffunction-sections -fdata-sections + endif +MAIN_LDFLAGS += -Wl,--gc-sections -Wl,--no-undefined endif ifdef ALLOW_LIGHTREC_ON_ARM CFLAGS += -DALLOW_LIGHTREC_ON_ARM @@ -603,21 +606,12 @@ SOUND_DRIVERS = libretro PLUGINS = NO_CONFIG_MAK = yes -# what does this do -#libretro_all: all -#ifeq ($(platform),ios) -#ifeq ($(DYNAREC),1) -# make -f Makefile.libretro DYNAREC=0 platform=$(platform) clean -# make -f Makefile.libretro DYNAREC=0 platform=$(platform) -#endif -#endif - $(info TARGET: $(TARGET)) $(info platform: $(platform)) $(info ARCH: $(ARCH)) $(info DYNAREC: $(DYNAREC)) $(info BUILTIN_GPU: $(BUILTIN_GPU)) -$(info CC: $(CC)) +$(info CC: $(CC) : $(shell $(CC) --version | head -1)) $(info CFLAGS: $(CFLAGS)) $(info MAIN_LDLIBS: $(MAIN_LDLIBS)) $(info )