Changeset 2a1c27f for configure


Ignore:
Timestamp:
2016-11-28T18:20:34Z (8 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
  • configure

    r87872c7 r2a1c27f  
    4141doc=1
    4242debug=0
    43 strip=1
     43strip=0
    4444gcov=0
    4545asan=0
     
    287287        CFLAGS="$CFLAGS -g3 -DDEBUG -O0"
    288288else
    289         [ -z "$CFLAGS" ] && CFLAGS="-O2 -fno-strict-aliasing"
     289        [ -z "$CFLAGS" ] && CFLAGS="-g -O2 -fno-strict-aliasing"
    290290fi
    291291
Note: See TracChangeset for help on using the changeset viewer.