aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authordequis <dx@dxzone.com.ar>2016-11-28 15:20:34 -0300
committerdequis <dx@dxzone.com.ar>2016-11-28 15:20:34 -0300
commit2a1c27f7d49e5065d4af598848bb3810bcf65e93 (patch)
tree94880b0744b739f2160aeb526710d8c45df6df08 /Makefile
parent87872c712535013cbba81653021a41091a9ed7f2 (diff)
Include debug symbols in non-debug builds, disable stripping by default
With this commit, the difference between debug and non-debug builds is mainly the optimization level and -DDEBUG (which isn't used much) In other words: --debug=0 == CFLAGS="-g -O2 -fno-strict-aliasing" --debug=1 == CFLAGS="-g3 -DDEBUG -O0" And --strip=1 can be used to get rid of the debug symbols. This is closer to the default behavior of autotools. Should have done this forever ago, like back when bitlbee had bugs (lol)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 3d930f97..2c6c69ff 100644
--- a/Makefile
+++ b/Makefile
@@ -181,7 +181,7 @@ $(objects): Makefile Makefile.settings config.h
$(OUTFILE): $(objects) $(subdirs)
@echo '*' Linking $(OUTFILE)
@$(CC) $(objects) $(subdirobjs) -o $(OUTFILE) $(LDFLAGS_BITLBEE) $(LDFLAGS) $(EFLAGS)
-ifndef DEBUG
+ifneq ($(firstword $(STRIP)), \#)
@echo '*' Stripping $(OUTFILE)
@-$(STRIP) $(OUTFILE)
endif