[RFC 0/2] let gdbserver use libiberty

Marcus Shawcroft marcus.shawcroft@gmail.com
Wed Jun 18 12:27:00 GMT 2014


On 16 June 2014 14:25, James Greenhalgh <james.greenhalgh@arm.com> wrote:
> On Thu, Jun 12, 2014 at 09:37:19PM +0100, Tom Tromey wrote:
>> This series slipped through the cracks somehow.  I'm going to push it
>> now.  I believe I addressed all the review comments upthread.  I rebased
>> it and rebuilt it on x86-64 Fedora 20; let me know if you encounter any
>> problems.
>
> Hi Tom,
>
> This seems to cause issues when building gdbserver as part of a larger
> Canadian Cross ARM/AArch64 build. ar ends up confused having seemingly lost
> the expected flags:

The issue here appears to be that libiberty configure script probes
for and finds an appropriate AR for the --build/--target combination.
However, the gdbserver configure does not probe for AR but does
override the AR used in the libiberty build by explicitly passing AR
to the sub-builds.  This has the effect of passing the systems 'ar'
rather than an ar appropriate for the --build/--target combination.

An alternative  approach to that suggested by James is to have the
gdbserver configure scri[t probe for AR to ensure that something sane
is passed on to the sub-builds.

Patch attached.

OK ?

/Marcus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-gdbserver-canadian-cross-build.patch
Type: text/x-patch
Size: 1435 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20140618/df4ee92b/attachment.bin>


More information about the Gdb-patches mailing list