[gdb/contrib] Use OBJCOPY everywhere in cc-with-tweaks.sh
authorTom de Vries <tdevries@suse.de>
Wed, 12 Oct 2022 08:55:39 +0000 (10:55 +0200)
committerTom de Vries <tdevries@suse.de>
Wed, 12 Oct 2022 08:55:39 +0000 (10:55 +0200)
I noticed that the $want_gnu_debuglink code in gdb/contrib/cc-with-tweaks.sh
uses objcopy instead of $OBJCOPY.  Fix this.

Script checked with shellcheck, no new warnings added.

Tested on x86_64-linux.

gdb/contrib/cc-with-tweaks.sh

index 7919d2da85a8c383b73ef36288b2b8579714eb3a..c6f0f62cd06a8ad7ab91633d45bdb417e8186035 100755 (executable)
@@ -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