mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
config/optimize: add -gdwarf-4 for split debug info builds
Since gcc 11 -gsplit-dwarf no longer implicitly enables -g and needs a separate -g option. For some yet unknown reasons the default DWARF 5 format doesn't work, gdb doesn't show debug info, but DWARF 4 works fine so use that. Signed-off-by: Matthias Reichl <hias@horus.com>
This commit is contained in:
parent
b7fce117f3
commit
4436ef2626
@ -47,9 +47,9 @@ CFLAGS_OPTIM_DEBUG="-ggdb -Og"
|
||||
CXXFLAGS_OPTIM_DEBUG="$CFLAGS_OPTIM_DEBUG"
|
||||
LDFLAGS_OPTIM_DEBUG="-ggdb"
|
||||
# split debug settings (requires gold)
|
||||
CFLAGS_OPTIM_DEBUG_SPLIT="-gsplit-dwarf -Og"
|
||||
CFLAGS_OPTIM_DEBUG_SPLIT="-gdwarf-4 -gsplit-dwarf -Og"
|
||||
CXXFLAGS_OPTIM_DEBUG_SPLIT="$CFLAGS_OPTIM_DEBUG_SPLIT"
|
||||
LDFLAGS_OPTIM_DEBUG_SPLIT="-Wl,--gdb-index"
|
||||
LDFLAGS_OPTIM_DEBUG_SPLIT="-gdwarf-4 -Wl,--gdb-index"
|
||||
|
||||
# position-independent code
|
||||
CFLAGS_OPTIM_PIC="-fPIC -DPIC"
|
||||
|
Loading…
x
Reference in New Issue
Block a user