Re: link stage ignoring my static lib!
Re: link stage ignoring my static lib!
- Subject: Re: link stage ignoring my static lib!
- From: Peter O'Gorman <email@hidden>
- Date: Mon, 12 Nov 2007 18:13:24 -0600
Peter Mulholland wrote:
> I still don't see the need for "link order matters" though -
> especially when you cannot specify a lib multiple times to get around
> some issues. It might be a good idea for Apple to consider adding a
> flag to the linker that turns link order off (as it is with MSVC)
With the new linker on 10.5, link order does not matter anymore. To
quote the manpage:
A static library (aka static archive) is a collection of .o files with a
table of contents that lists the global symbols in the .o files. ld
will only pull .o files out of a static library if needed to resolve
some symbol reference. Unlike traditional linkers, ld will continually
search a static library while linking. There is no need to specify a
static library multiple times on the command line.
Peter
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden