[PATCH] configure: use OBJDUMP determined by libtool [PR95648]
authorDavid Seifert <soap@gentoo.org>
Wed, 1 Jun 2022 21:21:44 +0000 (17:21 -0400)
committerJeff Law <jeffreyalaw@gmail.com>
Wed, 1 Jun 2022 21:25:00 +0000 (17:25 -0400)
$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.

PR plugins/95648
config/

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

gcc/

* configure: Regenerate.

libcc1/

* configure: Regenerate.

config/gcc-plugin.m4
gcc/configure
libcc1/configure

index 7ee342f..2ccb9ca 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
index ba3a998..32f74ab 100755 (executable)
@@ -31725,7 +31725,7 @@ fi
      ;;
      *)
        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
index 01cfb28..6dd91a0 100755 (executable)
@@ -15034,7 +15034,7 @@ fi
      ;;
      *)
        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