From 6be5a20bd610e9aebeb0850a7f6ba707b4323c32 Mon Sep 17 00:00:00 2001 From: Allege <158626984+A113g3@users.noreply.github.com> Date: Thu, 8 Feb 2024 06:39:28 +1100 Subject: [PATCH] Do not strip debug library --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 1322d47..e71be18 100644 --- a/Makefile +++ b/Makefile @@ -612,7 +612,11 @@ else EXT?=dll TARGET := $(TARGET_NAME)_libretro.$(EXT) CC ?= gcc - SHARED := -shared -static-libgcc -static-libstdc++ -s -Wl,--version-script=libretro/link.T + SHARED := -shared -static-libgcc -static-libstdc++ + ifneq ($(DEBUG), 1) + SHARED += -s + endif + SHARED += -Wl,--version-script=libretro/link.T CFLAGS += -D__WIN32__ -Wno-missing-field-initializers -DHAVE_STRLWR LIBS = endif