• 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
compile for i86 on my PPC?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

compile for i86 on my PPC?


  • Subject: compile for i86 on my PPC?
  • From: Paul Archibald <email@hidden>
  • Date: Fri, 5 May 2006 13:05:21 -0700

Our Java app uses a JNI lib for mathematical calculations. We build the JNI with GCC with a makefile.

Since we entering the IntelMac age, we need to target our JNIs to both the i86 and PPC architectures. I am doing it now by building the i86 JNI on an intelMini, and the PPC JNI on my PPC powerbook.

My question is this: can I build for a different architecture than that of the machine doing the compiling? I would like to be able to build both the PPC and i86 libs on whatever machine I have handy. Is there a g++ option to force which architecture is output? I am not very experienced with makefiles.

Here is part of my makefile:

$(TARGET): $(OBJECTS)
g++ -o $@ -dynamiclib -install_name $(DESTDIR)/$@ $^
strip -x $@

%.o: %.cpp
g++ -c -O2 -o $@ $^ -I /System/Library/Frameworks/JavaVM.framework/ Headers


_______________________________________________
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: compile for i86 on my PPC?
      • From: "Justin C. Walker" <email@hidden>
    • Re: compile for i86 on my PPC?
      • From: Kevin Van Vechten <email@hidden>
  • Prev by Date: Re: question for CFRunLoopStop()
  • Next by Date: Re: compile for i86 on my PPC?
  • Previous by thread: RE: question for CFRunLoopStop()
  • Next by thread: Re: compile for i86 on my PPC?
  • Index(es):
    • Date
    • Thread