From a00d66e592a7233477c39aba03223a3b5f1ef64c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Albert=20Gr=C3=A4f?= <aggraef@gmail.com> Date: Tue, 1 Sep 2020 13:33:17 +0200 Subject: [PATCH] mingw makefile (pd): don't strip binaries if -g et al are present. --- pd/src/makefile.mingw | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pd/src/makefile.mingw b/pd/src/makefile.mingw index 845bf5989..740adc89b 100755 --- a/pd/src/makefile.mingw +++ b/pd/src/makefile.mingw @@ -66,7 +66,12 @@ ARCH_CFLAGS = -DPD -DPD_INTERNAL -DMSW -DPA_USE_ASIO -DPA_USE_WMME \ CFLAGS += $(ARCH_CFLAGS) $(WARN_CFLAGS) $(OPT_CFLAGS) $(MORECFLAGS) +ifeq ($(filter -g -ggdb, $(CFLAGS)),) STRIP = strip --strip-unneeded -R .note -R .comment +else +# don't strip, we need the debugging symbols +STRIP = true +endif # the sources -- GitLab