diff --git a/scripts/build/debug/300-gdb.sh b/scripts/build/debug/300-gdb.sh --- a/scripts/build/debug/300-gdb.sh +++ b/scripts/build/debug/300-gdb.sh @@ -191,6 +191,13 @@ native_extra_config=("${extra_config[@]}") + # For 64-bit targets, the target libs may get installed in lib64/ + # and not in lib/ so symlink the former to the latter. + CT_DoExecLog DEBUG mkdir -p "${CT_BUILD_DIR}/static-target" + CT_DoExecLog DEBUG mkdir -p "${CT_BUILD_DIR}/static-target/lib" + CT_DoExecLog DEBUG ln -s "${CT_BUILD_DIR}/static-target/lib" \ + "${CT_BUILD_DIR}/static-target/lib64" + # GDB on Mingw depends on PDcurses, not ncurses if [ "${do_ncurses}" = "y" ]; then CT_DoLog EXTRA "Building static target ncurses"