diff options
author | H.J. Lu <hongjiu.lu@intel.com> | 2015-10-07 13:45:21 +0000 |
---|---|---|
committer | H.J. Lu <hjl@gcc.gnu.org> | 2015-10-07 06:45:21 -0700 |
commit | 32a18c8c93123416beecaca56d7edf4ba00ddb79 (patch) | |
tree | 160918e10c2bf42253d786ae1e7a17e3d11d455c | |
parent | b0ae33baab449487d7438b6458d42887941e7d11 (diff) | |
download | gcc-32a18c8c93123416beecaca56d7edf4ba00ddb79.zip gcc-32a18c8c93123416beecaca56d7edf4ba00ddb79.tar.gz gcc-32a18c8c93123416beecaca56d7edf4ba00ddb79.tar.bz2 |
Check $READELF_FOR_TARGET for readelf in configure
Similar to as, ld, nm and objdump, gcc configure should check
$READELF_FOR_TARGET for readelf.
PR bootstrap/67385
* configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
* configure: Regenerated.
From-SVN: r228567
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rwxr-xr-x | gcc/configure | 6 | ||||
-rw-r--r-- | gcc/configure.ac | 4 |
3 files changed, 13 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2356002..7d57879 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,11 @@ 2015-10-07 H.J. Lu <hongjiu.lu@intel.com> + PR bootstrap/67385 + * configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET. + * configure: Regenerated. + +2015-10-07 H.J. Lu <hongjiu.lu@intel.com> + PR target/67850 * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ... (ix86_set_current_function): This. diff --git a/gcc/configure b/gcc/configure index f6ae9906..6b160ae 100755 --- a/gcc/configure +++ b/gcc/configure @@ -22271,9 +22271,11 @@ if test -f $gcc_cv_binutils_srcdir/configure.ac \ gcc_cv_readelf=../binutils/readelf$build_exeext elif test -x readelf$build_exeext; then gcc_cv_readelf=./readelf$build_exeext +elif ( set dummy $READELF_FOR_TARGET; test -x $2 ); then + gcc_cv_readelf="$READELF_FOR_TARGET" else - # Extract the first word of "readelf", so it can be a program name with args. -set dummy readelf; ac_word=$2 + # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args. +set dummy $READELF_FOR_TARGET; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then : diff --git a/gcc/configure.ac b/gcc/configure.ac index 88fb9bf..be721e6 100644 --- a/gcc/configure.ac +++ b/gcc/configure.ac @@ -2403,8 +2403,10 @@ if test -f $gcc_cv_binutils_srcdir/configure.ac \ gcc_cv_readelf=../binutils/readelf$build_exeext elif test -x readelf$build_exeext; then gcc_cv_readelf=./readelf$build_exeext +elif ( set dummy $READELF_FOR_TARGET; test -x $[2] ); then + gcc_cv_readelf="$READELF_FOR_TARGET" else - AC_PATH_PROG(gcc_cv_readelf, readelf) + AC_PATH_PROG(gcc_cv_readelf, $READELF_FOR_TARGET) fi]) AC_MSG_CHECKING(what readelf to use) |