• 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
Question about Leopard's gcc -M* compiler directive defaults (which weren't apparently present with Tiger's gcc).
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Question about Leopard's gcc -M* compiler directive defaults (which weren't apparently present with Tiger's gcc).


  • Subject: Question about Leopard's gcc -M* compiler directive defaults (which weren't apparently present with Tiger's gcc).
  • From: Terry Simons <email@hidden>
  • Date: Wed, 23 Jan 2008 00:42:43 -0700

Hi,

I have some autoconf magic that tries to set things up for universal binary support. This code worked in Tiger, but I'm getting errors with Leopard:

gcc-4.0: -E, -S, -save-temps and -M options are not allowed with multiple -arch flags

Since I was not getting this error with Tiger's version of gcc 4.0, I can only assume that this is something new to Leopard, or something that patched my configure.ac since the last time I tried this broke something.

For reference, here are the relevant flags being sent to the compiler:

-Wall -fno-strict-aliasing -g -O2 -isysroot /Developer/SDKs/ MacOSX10.4u.sdk -mmacosx-version-min=10.4 -arch i386 -arch ppc -MT lldpneighbors.o -MD -MP -MF .deps/lldpneighbors.Tpo -c -o lldpneighbors.o lldpneighbors.c

Is the generation of -M* gcc options a new default behavior in Leopard's updated auto* tools?

I've tried deciphering the GCC documentation.

-MT and -MP make some sense to me... though I'm not sure I understand why they would cause a problem.

-MD and -MF makes no sense to me whatsoever. :)

I'll go out on a limb here and assume that what the error really means is that -MD is the real culprit, since it is equivalent to -M -MF, where -M is the real problem, and that removing -MD also means that I should probably remove -MF as well, but how do I do that?

I'd much rather forgo these options in favor of being able to build universally.

Any Apple people lurking that might be able to shed some light? ;)

Thanks,

- Terry
_______________________________________________
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


  • Prev by Date: Xcode Organizer actions and %%% variables
  • Next by Date: Re: GUI for codesign tool?
  • Previous by thread: Xcode Organizer actions and %%% variables
  • Next by thread: Xcode makes computer invisible on network
  • Index(es):
    • Date
    • Thread