site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.4pre) Gecko/20091014 Fedora/3.0-2.8.b4.fc11 Thunderbird/3.0b4 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. Peter -- Peter O'Gorman http://pogma.com _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... On 01/05/2010 10:46 AM, Joel Reymont wrote: 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. This email sent to site_archiver@lists.apple.com