public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* build: are there situations where 'ar' does not work?
@ 2010-08-23  0:02 Ralf Wildenhues
  2010-08-23 11:46 ` Ian Lance Taylor
  2010-08-23 13:33 ` Andi Kleen
  0 siblings, 2 replies; 4+ messages in thread
From: Ralf Wildenhues @ 2010-08-23  0:02 UTC (permalink / raw)
  To: gcc; +Cc: bug-libtool

Hello GCC developers,

Libtool recently added a configure test for @file support in ar
(and other tools) in order to avoid the slower partial building
or static libraries on some systems (and have an escape route on
systems where the archiver doesn't allow adding to an archive).

Now, to avoid issues when GCC uses newer Libtool: are there situations
where running $AR does not work?  Cross compile?  In-tree binutils?

Thanks,
Ralf

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: build: are there situations where 'ar' does not work?
  2010-08-23  0:02 build: are there situations where 'ar' does not work? Ralf Wildenhues
@ 2010-08-23 11:46 ` Ian Lance Taylor
  2010-08-23 13:33 ` Andi Kleen
  1 sibling, 0 replies; 4+ messages in thread
From: Ian Lance Taylor @ 2010-08-23 11:46 UTC (permalink / raw)
  To: gcc; +Cc: bug-libtool

Ralf Wildenhues <Ralf.Wildenhues@gmx.de> writes:

> Libtool recently added a configure test for @file support in ar
> (and other tools) in order to avoid the slower partial building
> or static libraries on some systems (and have an escape route on
> systems where the archiver doesn't allow adding to an archive).
>
> Now, to avoid issues when GCC uses newer Libtool: are there situations
> where running $AR does not work?  Cross compile?  In-tree binutils?

When building a target library (libgcc, libstdc++, etc.) $AR should
always work.

Ian

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: build: are there situations where 'ar' does not work?
  2010-08-23  0:02 build: are there situations where 'ar' does not work? Ralf Wildenhues
  2010-08-23 11:46 ` Ian Lance Taylor
@ 2010-08-23 13:33 ` Andi Kleen
  2010-08-23 17:43   ` Richard Guenther
  1 sibling, 1 reply; 4+ messages in thread
From: Andi Kleen @ 2010-08-23 13:33 UTC (permalink / raw)
  To: gcc; +Cc: bug-libtool

Ralf Wildenhues <Ralf.Wildenhues@gmx.de> writes:

> Now, to avoid issues when GCC uses newer Libtool: are there situations
> where running $AR does not work?  Cross compile?  In-tree binutils?

It doesn't work when you use LTO without gold/linker-plugin.

-Andi

-- 
ak@linux.intel.com -- Speaking for myself only.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: build: are there situations where 'ar' does not work?
  2010-08-23 13:33 ` Andi Kleen
@ 2010-08-23 17:43   ` Richard Guenther
  0 siblings, 0 replies; 4+ messages in thread
From: Richard Guenther @ 2010-08-23 17:43 UTC (permalink / raw)
  To: Andi Kleen; +Cc: gcc, bug-libtool

On Mon, Aug 23, 2010 at 12:43 PM, Andi Kleen <andi@firstfloor.org> wrote:
> Ralf Wildenhues <Ralf.Wildenhues@gmx.de> writes:
>
>> Now, to avoid issues when GCC uses newer Libtool: are there situations
>> where running $AR does not work?  Cross compile?  In-tree binutils?
>
> It doesn't work when you use LTO without gold/linker-plugin.

Sure it does.  Just the created archive will not be considered for LTO
optimization.

Richard.

> -Andi
>
> --
> ak@linux.intel.com -- Speaking for myself only.
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-08-23 17:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-23  0:02 build: are there situations where 'ar' does not work? Ralf Wildenhues
2010-08-23 11:46 ` Ian Lance Taylor
2010-08-23 13:33 ` Andi Kleen
2010-08-23 17:43   ` Richard Guenther

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).