• 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: Is there a way to determine what default options are passed to g++?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is there a way to determine what default options are passed to g++?


  • Subject: Re: Is there a way to determine what default options are passed to g++?
  • From: Kevin Van Vechten <email@hidden>
  • Date: Fri, 26 May 2006 13:36:41 -0700

What do you mean by slightly different output? It'd help to know what differences you're seeing.

Also, have you checked that both versions of gcc/g++ are the same (gcc -v)? That might account for subtle differences.

- Kevin

On May 26, 2006, at 12:30 PM, Paul Archibald wrote:

Comrades,

Does anyone know how to show the default options that are passed to gcc/g++? I am building a universal binary, and I get slightly different output depending on whether I build it on my PPC Powerbook or this IntelMini loaner. I am really close, The Intel build works on the IntelMini and the PPC, but the PPC build only works on the PPC. I want the PPC build to be portable, too.

This is the compiler command from the makefile:

$(TARGET): $(OBJECTS)
g++ -arch i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -o $@ -dynamiclib -install_name $(DESTDIR)/$@ $^
strip -x $@

%.o: %.cpp
g++ -arch i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -c -O2 -o $@ $^ -I /System/Library/Frameworks/JavaVM.framework/Headers


I think the fix is to add something to the options list that will force both compilers (Intel and PPC) to generate exactly the same output. I just don't know what that something is.

Anybody have any idea?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Is there a way to determine what default options are passed to g++?
      • From: Paul Archibald <email@hidden>
References: 
 >Is there a way to determine what default options are passed to g++? (From: Paul Archibald <email@hidden>)

  • Prev by Date: Re: Is there a way to determine what default options are passed to g++?
  • Next by Date: HFS or HFS+? That is the statfs question
  • Previous by thread: Re: Is there a way to determine what default options are passed to g++?
  • Next by thread: Re: Is there a way to determine what default options are passed to g++?
  • Index(es):
    • Date
    • Thread