diff --git a/gdb/contrib/cc-with-tweaks.sh b/gdb/contrib/cc-with-tweaks.sh index 7919d2da85a..c6f0f62cd06 100755 --- a/gdb/contrib/cc-with-tweaks.sh +++ b/gdb/contrib/cc-with-tweaks.sh @@ -285,7 +285,7 @@ if [ "$want_gnu_debuglink" = true ]; then # Overwrite output_file with stripped version containing # .gnu_debuglink to debug_file. - objcopy --add-gnu-debuglink="$link" "${stripped_file}" \ + $OBJCOPY --add-gnu-debuglink="$link" "${stripped_file}" \ "${output_file}" rc=$? [ $rc != 0 ] && exit $rc