configure: use OBJDUMP determined by libtool [PR95648]
authorDavid Seifert <soap@gentoo.org>
Mon, 7 Aug 2023 11:07:16 +0000 (13:07 +0200)
committerAlan Modra <amodra@gmail.com>
Sat, 12 Aug 2023 00:28:23 +0000 (09:58 +0930)
$ac_cv_prog_OBJDUMP contains the --host OBJDUMP that
libtool has inferred. Current config/gcc-plugin.m4 does
not respect the user's choice for OBJDUMP.

config/
* gcc-plugin.m4: Use libtool's $ac_cv_prog_OBJDUMP.

config/gcc-plugin.m4

index ca98d6749125e916c3b22494aebc8eeafc65305c..16ebe25182b493b5e2539b830ca43736c94d3a4b 100644 (file)
@@ -45,7 +45,7 @@ AC_DEFUN([GCC_ENABLE_PLUGINS],
      ;;
      *)
        if test x$build = x$host; then
-        export_sym_check="objdump${exeext} -T"
+        export_sym_check="$ac_cv_prog_OBJDUMP -T"
        elif test x$host = x$target; then
         export_sym_check="$gcc_cv_objdump -T"
        else