Changeset 2a1c27f for Makefile


Ignore:
Timestamp:
2016-11-28T18:20:34Z (3 years ago)
Author:
dequis <dx@…>
Branches:
master
Children:
0483e1e
Parents:
87872c7
Message:

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)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Makefile

    r87872c7 r2a1c27f  
    182182        @echo '*' Linking $(OUTFILE)
    183183        @$(CC) $(objects) $(subdirobjs) -o $(OUTFILE) $(LDFLAGS_BITLBEE) $(LDFLAGS) $(EFLAGS)
    184 ifndef DEBUG
     184ifneq ($(firstword $(STRIP)), \#)
    185185        @echo '*' Stripping $(OUTFILE)
    186186        @-$(STRIP) $(OUTFILE)
Note: See TracChangeset for help on using the changeset viewer.