aboutsummaryrefslogtreecommitdiff
path: root/gdb/rust-lang.h
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2023-09-01 15:20:47 +0000
committerJoseph Myers <joseph@codesourcery.com>2023-09-01 15:20:47 +0000
commit7fdd4fcee1c6698daa8eb5f52017e768b0771503 (patch)
treed9707c26a835f1f2094aaeb8f4d4e710cc0811cd /gdb/rust-lang.h
parentb47a4f92de5c12ac8bdac57b0413e3e05d411832 (diff)
downloadgdb-7fdd4fcee1c6698daa8eb5f52017e768b0771503.zip
gdb-7fdd4fcee1c6698daa8eb5f52017e768b0771503.tar.gz
gdb-7fdd4fcee1c6698daa8eb5f52017e768b0771503.tar.bz2
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.
Diffstat (limited to 'gdb/rust-lang.h')
0 files changed, 0 insertions, 0 deletions