[LLVMdev] [PATCH] Cross-compiling LLVM on Mac OS X

Rob Rix rob at monochromeindustries.com
Tue Dec 22 14:19:35 PST 2009

>> Daniel's comments are also good.
> …success!

Looks like I spoke a bit too soon. Everything works as far as the fat binaries are concerned, except that -mmacosx-version-min is set to the host’s OS version, not that of the SDK, causing errors when it tries to link against 10.6’s versions of libraries instead of 10.5’s.

This patch appears to solve that; it uses the OS version from the SDK path for -mmacosx-version-min if UNIVERSAL_SDK_PATH is specified.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: Makefile.rules.patch
Type: application/octet-stream
Size: 1068 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20091222/1d666337/attachment.obj>
-------------- next part --------------

Rob Rix, Unknown Quantity
Monochrome Industries

More information about the llvm-dev mailing list