[LLVMdev] Cross-compiling LLVM on Mac OS X

Daniel Dunbar daniel at zuster.org
Mon Dec 21 16:07:03 PST 2009


You may also want to search for 'ifdef UNIVERSAL' in Makefile.rules,
there is some builtin support in the Makefile for this.

 - Daniel

On Mon, Dec 21, 2009 at 2:12 PM, Rob Rix <rob at monochromeindustries.com> wrote:
> (My apologies for the double e-mail, Eric; I neglected to reply to the list.)
>
>>> configure: error: Already configured in /Users/rob/Developer/External/llvm-trunk
>>> make[1]: *** No targets specified and no makefile found.  Stop.
>>> make: *** [cross-compile-build-tools] Error 1
>>
>> You're going to need multiple configures and multiple build directories to do it that way. You may want to try just setting your CXXFLAGS to "-arch i386 -arch ppc -arch x86_64" or something.
>
> I’m actually doing that presently with CFLAGS, but hadn’t considered the necessity of doing it with CXXFLAGS as well. Thank you!
>
>> Out of curiosity, why are you trying to build ToT 3-way FAT for OSX? It's already built like that on the system.
>
>
> I wasn’t aware of that. Are you referring to libLLVMCore.a & friends, or LLVM GCC? I wasn’t able to find the libraries in question in /usr/lib, /Developer, /System, or anywhere else I looked and searched. I am building a universal framework which needs to embed these libraries.
>
> Thanks very much,
> Rob
>
> --
> Rob Rix, Unknown Quantity
> Monochrome Industries
>
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>




More information about the llvm-dev mailing list