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:
parent
7ee7cf5f4e
commit
a44124937e
@ -46,7 +46,10 @@ export LD_LIBRARY_PATH=$INSTALL_DIR/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
|
||||
|
||||
if [ "T" = "$DEBUG" ]; then
|
||||
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
|
||||
export LD_LIBRARY_PATH=$INSTALL_DIR/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
|
||||
exec $INSTALL_DIR/bin/%EXENAME%-%VER% "$@"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user