Re: Nasm, PIC and the Leopard/XCode 3.0 linker
Re: Nasm, PIC and the Leopard/XCode 3.0 linker
- Subject: Re: Nasm, PIC and the Leopard/XCode 3.0 linker
- From: Andrew Kimpton <email@hidden>
- Date: Mon, 5 Nov 2007 20:45:29 -0500
On Nov 1, 2007, at 2:22 PM, Chris Espinosa wrote: On Nov 1, 2007, at 10:55 AM, David Wolstencroft wrote: Thanks Jonas,
I now clearly see the issue in the ld release notes. However, the ld man page (where I thought to look first) has not been updated to reflect this known issue.
I see ld_classic, but how do I tell Xcode 3.0 to use this? I cannot find how by searching the Xcode user guide.
Create a custom build setting in All Configurations. Name it LD and set its value to $(DEVELOPER_DIR)/usr/bin/ld_classic
This will only work with the 10.4u SDK or earlier, and will not work with the 10.5 SDK or native Leopard libraries.
I've tried this for a project where I too need to invoke the 'classic' linker - however setting LD doesn't work for me since it seems that Xcode is using 'gcc' to do the link to create a dylib (in my case), rather than 'ld' so the variable doesn't seem to have any effect (if gcc is supposed to observe it when choosing which linker to invoke it seems to be ignoring it too).
Short of remaking the symbolic links (which is pretty global) is there an alternative ? Modify the link rule in the particularly problem project ? Andrew 8-)
|
_______________________________________________
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