0
0
mirror of https://github.com/OpenVPN/openvpn3.git synced 2024-09-20 12:12:15 +02:00

build script: when building with DEBUG=1 on Linux, use -ggdb instead of -g

Signed-off-by: James Yonan <james@openvpn.net>
This commit is contained in:
James Yonan 2019-06-25 00:04:28 -06:00
parent 73cce80e43
commit 1c7bac90d9

View File

@ -336,8 +336,12 @@ fi
# release/debug builds
if [ "$DEBUG" = "1" ]; then
# debug build
FLAGS="-g $FLAGS"
# build with debug symbols
if [ "$PLATFORM" = "linux" ]; then
FLAGS="-ggdb $FLAGS"
else
FLAGS="-g $FLAGS"
fi
else
# release build
[ "$LTO" = "1" ] && [ "$CLANG" != "1" ] && FLAGS="$FLAGS -flto=4 -Wl,--no-as-needed"