Custom Linker with Xcode?
Custom Linker with Xcode?
- Subject: Custom Linker with Xcode?
- From: Salman Khilji <email@hidden>
- Date: Thu, 11 Aug 2011 04:56:14 -0700
Now that I sorta know how to specify my own compiler with Xcode 4.1 by writing a new xcplugin under:
/PrivatePlugIns/Xcode3Core.ideplugin/Contents/SharedSupport/Developer/Library/Xcode/Plug-ins/
I would like ti know how to specify my own custom linker with Xcode. When I create a new compiler spec, it appears in the UI for me to choose from in the "Compiler for C/C++/Objective-C" field. However, it looks like Xcode does not let you choose which linker you want to use. The linker spec is in:
/Developer/Library/Xcode/PrivatePlugIns/Xcode3Core.ideplugin/Contents/SharedSupport/Developer/Library/Xcode/Plug-ins/CoreBuildTasks.xcplugin/Contents/Resources/Ld.xcspec
And it has the following line:
IsAbstract = Yes; // This is an internal tool, so we keep it out of the user interface
It does not seem to make a difference whether I change the "Yes" to a "No".
My gcc toolchain targets embedded Linux and does not support -arch, -F, and several other options that are specified in Ld.xcspec, and, therefore, I would like to control by writing my own spec file. The linking fails and complains about unknown options.
Salman _______________________________________________
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