commit 4edb2e2b6a607ce052a218c65064ffd00ba7e495
parent 1ad7ce3af8875423e5e63000c953521814bff547
Author: Dominik Schmidt <das1993@hotmail.com>
Date: Thu, 14 Sep 2017 21:21:00 +0200
Strip the binary after compilation.
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/Makefile b/Makefile
@@ -15,8 +15,10 @@ all: $(TARGET)-debug
$(TARGET): $(patsubst %.d, %.o, $(SRC))
$(DMD) $^ $(_DFLAGS) $(RELEASE) -of$@
+ strip -s $@
$(TARGET)-debug: $(patsubst %.d, %-debug.o, $(SRC))
$(DMD) $^ $(_DFLAGS) $(DEBUG) -of$@
+ strip --only-keep-debug $@
%.o:%.d
$(DMD) $(_DFLAGS) $(RELEASE) -c -of$@ $<