diff options
author | Marcus Shawcroft <marcus.shawcroft@arm.com> | 2014-06-20 11:48:15 +0100 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2014-06-20 11:48:15 +0100 |
commit | e1d2394b50c7b174f48e38efb398034d75e67c99 (patch) | |
tree | f0e041f0c47266fdf3b92b91ea2b0a93b1fe3b1b /gdb/gdbserver/configure.ac | |
parent | eea6dad2b3ae91189caa91145dd133bae0398d21 (diff) | |
download | gdb-e1d2394b50c7b174f48e38efb398034d75e67c99.zip gdb-e1d2394b50c7b174f48e38efb398034d75e67c99.tar.gz gdb-e1d2394b50c7b174f48e38efb398034d75e67c99.tar.bz2 |
Fix gdbserver cross build.
The recent libiberty patch caused issues when cross building
gdbserver. The Makefile ends invoking the build machine's "ar"
instead of the --host version:
ar ./libiberty.a \
./regex.o (...)
ar: illegal option -- .
Usage: ar [emulation options] [-]{dmpqrstx}[abcfilNoPsSuvV] [member-name] [count] archive-file file...
ar -M [<mri-script]
The libiberty configure script does probe for and finds an appropriate
AR. However, gdbserver's configure does not probe for AR and
overrides the AR used in the libiberty build by explicitly passing AR
to the sub-builds.
gdb/gdbserver/
2014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
* configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
* Makefile.in (AR, AR_FLAGS): Define.
* configure: Regenerate.
Diffstat (limited to 'gdb/gdbserver/configure.ac')
-rw-r--r-- | gdb/gdbserver/configure.ac | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/gdbserver/configure.ac b/gdb/gdbserver/configure.ac index ede38d0..7fa89d6 100644 --- a/gdb/gdbserver/configure.ac +++ b/gdb/gdbserver/configure.ac @@ -32,6 +32,7 @@ AC_SYS_LARGEFILE AC_CANONICAL_SYSTEM AC_PROG_INSTALL +AC_CHECK_TOOL(AR, ar) AC_PROG_RANLIB AC_ARG_PROGRAM |