commit c4715f5385e6a18cf880e5258f93aa5e4b23b711
parent 2fcbb05110545d8ae3cd25fe087b8b71374f102d
Author: bsandro <email@bsandro.tech>
Date: Sun, 7 Sep 2025 10:27:59 +0300
Not stripping or packing the binary on debug builds
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/gui/Makefile b/gui/Makefile
@@ -37,11 +37,15 @@ $(NAME): $(OBJ)
$(CC) $(OBJ) -o ../$@ $(LDFLAGS)
strip: $(NAME)
+ifneq ($(DEBUG),1)
strip -S --strip-unneeded --remove-section=.note.gnu.gold-version --remove-section=.comment --remove-section=.note --remove-section=.note.gnu.build-id --remove-section=.note.ABI-tag ../$(NAME)
+endif
upx: strip
ifdef UPX_FOUND
+ifneq ($(DEBUG),1)
upx --ultra-brute ../$(NAME)
+endif
else
@echo "upx is not installed"
endif