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:
parent
73cce80e43
commit
1c7bac90d9
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user