mirror of
https://github.com/gcc-mirror/gcc.git
synced 2024-11-21 13:40:47 +00:00
config: Fix host -rdynamic detection for build != host != target
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. gcc/ * configure: Regenerate. libcc1/ * configure: Regenerate.
This commit is contained in:
parent
798a880a0b
commit
4d9bc81a5d
@ -49,7 +49,7 @@ AC_DEFUN([GCC_ENABLE_PLUGINS],
|
|||||||
elif test x$host = x$target; then
|
elif test x$host = x$target; then
|
||||||
export_sym_check="$gcc_cv_objdump -T"
|
export_sym_check="$gcc_cv_objdump -T"
|
||||||
else
|
else
|
||||||
export_sym_check=
|
export_sym_check="$ac_cv_prog_OBJDUMP -T"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
2
gcc/configure
vendored
2
gcc/configure
vendored
@ -31975,7 +31975,7 @@ fi
|
|||||||
elif test x$host = x$target; then
|
elif test x$host = x$target; then
|
||||||
export_sym_check="$gcc_cv_objdump -T"
|
export_sym_check="$gcc_cv_objdump -T"
|
||||||
else
|
else
|
||||||
export_sym_check=
|
export_sym_check="$ac_cv_prog_OBJDUMP -T"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
2
libcc1/configure
vendored
2
libcc1/configure
vendored
@ -15120,7 +15120,7 @@ fi
|
|||||||
elif test x$host = x$target; then
|
elif test x$host = x$target; then
|
||||||
export_sym_check="$gcc_cv_objdump -T"
|
export_sym_check="$gcc_cv_objdump -T"
|
||||||
else
|
else
|
||||||
export_sym_check=
|
export_sym_check="$ac_cv_prog_OBJDUMP -T"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
Loading…
Reference in New Issue
Block a user