13
0

Allow to use ardour --gdb on modern systems

gdb indirectl tdepends on recent glib, so we have to set
LD_LIBRARY_PATH after gdb has started. This fixes:

```
gdb: symbol lookup error: /lib64/libbabeltrace.so.1: undefined symbol: g_string_free_and_steal
```
This commit is contained in:
Robin Gareus 2024-02-14 15:29:09 +01:00
parent 7ee7cf5f4e
commit a44124937e
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -46,7 +46,10 @@ export LD_LIBRARY_PATH=$INSTALL_DIR/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
if [ "T" = "$DEBUG" ]; then if [ "T" = "$DEBUG" ]; then
export ARDOUR_INSIDE_GDB=1 export ARDOUR_INSIDE_GDB=1
exec gdb $INSTALL_DIR/bin/%EXENAME%-%VER% exec gdb --args \
env LD_LIBRARY_PATH=$INSTALL_DIR/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH} \
$INSTALL_DIR/bin/%EXENAME%-%VER%
else else
export LD_LIBRARY_PATH=$INSTALL_DIR/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
exec $INSTALL_DIR/bin/%EXENAME%-%VER% "$@" exec $INSTALL_DIR/bin/%EXENAME%-%VER% "$@"
fi fi