• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: -mstackrealign works with ix86 but not pcc
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >-mstackrealign works with ix86 but not pcc (From: lbland <email@hidden>)

  • Prev by Date: Adding frameworks to a Cocoa unit test
  • Next by Date: Re: Adding frameworks to a Cocoa unit test
  • Previous by thread: Re: -mstackrealign works with ix86 but not pcc
  • Next by thread: Adding frameworks to a Cocoa unit test
  • Index(es):
    • Date
    • Thread