• 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: Interesting problem with Xcode 3.0
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Interesting problem with Xcode 3.0


  • Subject: Re: Interesting problem with Xcode 3.0
  • From: Jonas Maebe <email@hidden>
  • Date: Fri, 15 Feb 2008 15:14:07 +0100


On 15 Feb 2008, at 14:27, Richard Bannister wrote:

One of my projects has a a small snippet of x86 assembly in it.

In order to make this code compile correctly I need to use -static and -fomit-frame-pointer on the command line. In other words, I can build it like this:

gcc -static -fomit-frame-pointer file.c -o file.o

I think it's better to change the assembler code so it becomes PIC-safe.

I'm trying to get it to build in my Xcode project with these options.. I've added the two flags to the Build tab of the file info:

	-static -fomit-frame-pointer

Unfortunately, it will not compile, throwing the following error:

{standard input}:2:FATAL:incompatible feature used: section type symbol_stubs (must specify "-dynamic" to be used)

Can anyone advise how I might work around this?

Put that file in a separate static library target which you compile with -static -fomit-frame-pointer, and then link this library with the rest of your program. You cannot compile entire programs statically on Mac OS X (not in a supported way, anyway).



Jonas _______________________________________________ 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: 
 >Interesting problem with Xcode 3.0 (From: Richard Bannister <email@hidden>)

  • Prev by Date: Re: Interesting problem with Xcode 3.0
  • Next by Date: Re: Xcode 3 and sample wchar_t data formatter
  • Previous by thread: Re: Interesting problem with Xcode 3.0
  • Next by thread: Re: Interesting problem with Xcode 3.0
  • Index(es):
    • Date
    • Thread