diff options
author | Lennart Poettering <lennart@poettering.net> | 2013-10-30 02:04:17 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2013-10-30 02:08:57 +0100 |
commit | 0fc6e1ed00ee1af4282e46d40ceb07b3afedebef (patch) | |
tree | 31ef73754bf3ae542dab03335d010236459080a7 | |
parent | d36679f72eeb96d974d7b012a68e94f55c268068 (diff) |
autogen: use -O0 for "autogen.sh c" after all
-Og actually breaks gdb still, so let's stick to -O0 for now, but
introduce "autogen.sh g" for those who don't need gdb.
-rwxr-xr-x | autogen.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/autogen.sh b/autogen.sh index f80676b7c1..9869c156ae 100755 --- a/autogen.sh +++ b/autogen.sh @@ -54,6 +54,9 @@ args="$args \ fi if [ "x$1" = "xc" ]; then + ./configure CFLAGS='-g -O0' $args + make clean +elif [ "x$1" = "xg" ]; then ./configure CFLAGS='-g -Og' $args make clean else @@ -62,6 +65,6 @@ else echo "Initialized build system. For a common configuration please run:" echo "----------------------------------------------------------------" echo - echo "./configure CFLAGS='-g -Og' $args" + echo "./configure CFLAGS='-g -O0' $args" echo fi |