Re: -mstackrealign works with ix86 but not pcc
Re: -mstackrealign works with ix86 but not pcc
- Subject: Re: -mstackrealign works with ix86 but not pcc
- From: Chris Espinosa <email@hidden>
- Date: Wed, 2 May 2007 12:24:10 -0700
On May 2, 2007, at 11:46 AM, lbland wrote: -mstackrealign works with ix86 but not pcc.
I insert -mstackrealign in OTHER_CFLAGS in Xcode and when I cross compile for pcc the compile fails. gcc complains that stackrealign is not a valid flag.
Maybe so, but how can I use -mstackrealign for ix86 and not ppc in Xcode settings and make a fat binary?
The General Technique for architecture-specific flags in Xcode 2.x:
1) Define these two new custom build settings in your target, for all configurations:
OTHER_CFLAGS_ppc = $(OTHER_CFLAGS) OTHER_CFLAGS_i386 = -mstackrealign $(OTHER_CFLAGS)
2) Set the Other C Flags build setting value in your target, in all configurations, to this:
$(OTHER_CFLAGS_$(CURRENT_ARCH))
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