Re: Xcode 3.2.6 & 4.0.2: Compiler Selection in Terminal
Re: Xcode 3.2.6 & 4.0.2: Compiler Selection in Terminal
- Subject: Re: Xcode 3.2.6 & 4.0.2: Compiler Selection in Terminal
- From: Ken Thomases <email@hidden>
- Date: Fri, 22 Jul 2011 12:34:30 -0500
On Jul 22, 2011, at 8:21 AM, Dallman, John wrote:
>> But I'm concerned about building the open source library in Terminal:
>> how can we ensure that our makefiles build against the correct SDK
>> and GCC version when run on the command-line?
>
> For the SDK version, you need to use this additional compiler option:
>
> -isysroot /Developer/SDKs/MacOSX10.5.sdk
>
> If your Xcode 3.2.6 is in a different folder from /Developer, change that
> part of the path accordingly.
>
> I'm not sure of the details for the GCC version, because I've never used
> more than one Xcode on a machine.
Make sure that <Xcode>/usr/bin and <Xcode>/usr/sbin precede /usr/bin and /usr/sbin in your PATH and you should be fine.
If your scripts or makefiles are invoking xcodebuild, be sure to invoke xcode-select to switch to the desired Xcode.
Regards,
Ken
_______________________________________________
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