Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Xcode flags to gcc




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:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden

References: 
 >Xcode flags to gcc (From: Marco Bambini <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.