From 259a9de034519ba9c3d580ce809f682c42f4e2ce Mon Sep 17 00:00:00 2001 From: r4sas Date: Mon, 17 Aug 2020 11:31:58 +0000 Subject: [PATCH] remove optimisations for debug build Signed-off-by: r4sas --- Makefile | 4 ++-- Makefile.mingw | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index f8a60d8..48b8a08 100644 --- a/Makefile +++ b/Makefile @@ -10,11 +10,11 @@ SYGCPP = sygcpp ifeq ($(DEBUG),yes) CXX_DEBUG = -g else - LD_DEBUG = -s + LD_DEBUG = -s -Os endif CXXFLAGS = $(CXX_DEBUG) -fPIC -LDFLAGS = $(LD_DEBUG) -Os +LDFLAGS = $(LD_DEBUG) SYG_OBJS = $(patsubst %.cpp,obj/%.o,$(SYG_SRC)) diff --git a/Makefile.mingw b/Makefile.mingw index ca73993..7f35a45 100644 --- a/Makefile.mingw +++ b/Makefile.mingw @@ -2,7 +2,7 @@ WINDRES = windres SYG_RC = windows/resource.rc -LDFLAGS = $(LD_DEBUG) -Os -Wl,-Bstatic +LDFLAGS += -Wl,-Bstatic LDLIBS = -static-libgcc -lcrypto -lws2_32 -lpthread SYG_OBJS += $(patsubst %.rc,obj/%.o,$(SYG_RC))