Re: Xcode flags to gcc
Re: Xcode flags to gcc
- Subject: Re: Xcode flags to gcc
- From: Chris Espinosa <email@hidden>
- Date: Fri, 14 Jul 2006 08:37:50 -0700
On Jul 14, 2006, at 3:35 AM, Marco Bambini wrote: ARCHS = ppc i386 SDKROOT_i386 = /Developer/SDKs/MacOSX10.4u.sdk SDKROOT_ppc = /Developer/SDKs/MacOSX10.2.8.sdk GCC_VERSION_i386 = 4.0 GCC_VERSION_ppc = 3.3
I know that I can use something like: -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc
but, how can I specify a per architecture isysroot ? and what about gcc version?
Xcode doesn't. It invokes gcc twice, once per architecture, with different sets of flags, then lipos the results together. You can't drive gcc with multiple -arch flags and get it to use different flags for different archs in one invocation.
Note in your case that you even want to use different gcc compilers, so you pretty much have to set this up in your makefile; GCC_VERSION specifies which tool to execute, not just a flag passed to gcc.
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