Joseph Myers 7fdd4fcee1 config: Fix host -rdynamic detection for build != host != target
[Merge from GCC commit 4d9bc81a5d8d884dee7a7781fa4c1577a6c9681a.]

The GCC_ENABLE_PLUGINS configure logic for detecting whether -rdynamic
is necessary and supported uses an appropriate objdump for $host
binaries (running on $build) in cases where $host is $build or
$target.

However, it is missing such logic in the case where $host is neither
$build nor $target, resulting in the compilers not being linked with
-rdynamic and plugins not being usable with such a compiler.  In fact
$ac_cv_prog_OBJDUMP, as used when $build = $host, is always an objdump
for $host binaries that runs on $build; that is, it's appropriate to
use in this case as well.

Tested in such a configuration that it does result in cc1 being linked
with -rdynamic as expected.  Also bootstrapped with no regressions for
x86_64-pc-linux-gnu.

config/
	* gcc-plugin.m4 (GCC_ENABLE_PLUGINS): Use
	export_sym_check="$ac_cv_prog_OBJDUMP -T" also when host is not
	build or target.
2023-09-01 15:20:47 +00:00
..
2021-05-18 17:46:55 -04:00
2022-10-12 10:08:14 +10:30
2018-06-18 09:33:48 -04:00
2022-01-01 12:49:07 -05:00
2015-07-14 09:18:16 -07:00
2018-06-18 09:33:48 -04:00
2018-06-18 09:33:48 -04:00
2022-12-31 12:05:28 +00:00
2022-11-15 15:24:29 -08:00
2015-03-16 08:49:06 -07:00
2018-11-09 16:08:10 +00:00
2022-09-28 13:37:31 +09:30
2020-04-29 14:25:36 -07:00
2015-03-16 08:41:42 -07:00
2018-10-31 17:16:41 +00:00
2023-01-04 13:23:54 +10:30
2018-04-05 15:22:13 -07:00
2015-07-27 07:43:26 -07:00
2015-07-14 09:18:16 -07:00
2015-07-27 07:43:26 -07:00
2015-07-14 09:18:16 -07:00
2015-07-27 07:43:26 -07:00
2015-07-14 08:39:12 -07:00
2022-11-07 14:32:10 +01:00