]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/gdbserver/ChangeLog
Fix gdbserver cross build.
authorMarcus Shawcroft <marcus.shawcroft@arm.com>
Fri, 20 Jun 2014 10:48:15 +0000 (11:48 +0100)
committerPedro Alves <palves@redhat.com>
Fri, 20 Jun 2014 10:48:15 +0000 (11:48 +0100)
commite1d2394b50c7b174f48e38efb398034d75e67c99
treef0e041f0c47266fdf3b92b91ea2b0a93b1fe3b1b
parenteea6dad2b3ae91189caa91145dd133bae0398d21
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.
gdb/gdbserver/ChangeLog
gdb/gdbserver/Makefile.in
gdb/gdbserver/configure
gdb/gdbserver/configure.ac