Re: Question about building Universal Binaries in Leopard with transient <Xcode directory>
Re: Question about building Universal Binaries in Leopard with transient <Xcode directory>
- Subject: Re: Question about building Universal Binaries in Leopard with transient <Xcode directory>
- From: Chris Hanson <email@hidden>
- Date: Tue, 30 Oct 2007 23:39:53 -0700
On Oct 30, 2007, at 11:20 PM, Terry Simons wrote: I saw in the "About Xcode Tools" documentation for Leopard that the XCode 3.0 tools can be installed in a location other than "/Developer".
I'm assuming this means that the SDKs directory goes with it?
Yes. If so, how does one go about detecting the location where XCode is installed from an auto-tools based program? My specific concern is that the following technote says to pass -isysroot /Developer/SDKs/MacOSX10.4u.sdk to build Universal binaries: http://developer.apple.com/technotes/tn2005/tn2137.html
The Xcode Developer Tools installer also installs the standard system development tools and interfaces into /usr , so conventional makefile- and config-based builds will operate correctly. There is no way to switch among versions of most these tools; the last installed version replaces all other versions. A few of these tools, including /usr/bin/xcodebuild , can switch among versions; see the xcode-select manpage for more information. Installation of these tools can be disabled by turning off the UNIX Development Support choice in the installer. If the UNIX Development Support is not installed, all projects must build against an SDK, and conventional makefile-based builds should execute the standard development tools from the developer directory’s usr/bin directory instead of the root system’s /usr/bin . This can be done by adding the full path to that directory to the PATH environment variable and making sure that your build scripts and makefiles do not have absolute references to tools such as /usr/bin/gcc , instead always using the shell’s path mechanism to launch the tools. Alternatively, tools can be invoked using a path returned by xcode-select -print-path ; see the xcode-select manpage for more information.
Just do a "man xcode-select" from Terminal for more information. Hope this helps! -- Chris
|
_______________________________________________
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