Re: 10.5.2 and -force_load
Re: 10.5.2 and -force_load
- Subject: Re: 10.5.2 and -force_load
- From: Peter O'Gorman <email@hidden>
- Date: Tue, 05 Jan 2010 10:56:54 -0600
On 01/05/2010 10:46 AM, Joel Reymont wrote:
I'm trying to use -force_load with ld64-85.2.1 on 10.5.2 but there's no such option. This is with XCode 3.1 and gcc 4.2.
It's my understanding that -noall_load does not disable -all_load either so I can't use these around static libraries.
What are my options? I updated to XCode 3.1.4 but it has the same version of ld.
1) Do what firefox/mozilla has been doing in this case - unpack the
archives and add all the .o.
2) Build your own ld64 on 10.5.x with this patch:
http://svn.macosforge.org/repository/odcctools/trunk/patches/force_load.diff
I suggest (1), since that doesn't require everyone who wants to build
mozilla to also rebuild their linker.
Mac OS X 10.5 and earlier are not the only platforms lacking
--whole-archive/--no-whole-archive equivalents, it is necessary to keep
the unpacking of archives in place in order to be portable.
Peter
--
Peter O'Gorman
http://pogma.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden