[LLVMdev] quick q configuring osx

Graham Wakefield lists at grahamwakefield.net
Wed Jan 14 15:43:43 PST 2009


Hi,

For the record, adding
   UNIVERSAL_SDK_PATH=/Developer/SDKs/MacOSX10.4u.sdk/
was insufficient to restrict the .a/.o files to link against the 10.4  
sdk, but
   env MACOSX_DEPLOYMENT_TARGET=10.4 make
did the trick.

Thanks!

On Jan 14, 2009, at 1:29 PM, Jean-Daniel Dupas wrote:

>
> Le 14 janv. 09 à 21:48, Chris Lattner a écrit :
>
>>
>> On Jan 14, 2009, at 12:44 PM, Graham Wakefield wrote:
>>
>>> Sorry if this is a newb q... I'm developing an application on a  
>>> 10.5 machine but want to target the 10.4 SDK. Is there a magic  
>>> incantation for the llvm configure script to set the sysroot path,  
>>> equivalent to e.g. --with-sysroot "/Developer/SDKs/MacOSX10.4u.sdk"?
>>>
>> Try 'make UNIVERSAL_SDK_PATH=/Developer/SDKs/MacOSX10.4u.sdk/'.
>>
>> There are some comments in llvm/Makefile.rules that can help,
>
> Note that you don't have to use 10.4 SDK to target Tiger. You just  
> have to set the "macosx version min" (either using the gcc flag - 
> mmacosx-version-min=10.4 or using the MACOSX_DEPLOYMENT_TARGET env  
> var)
>
> env MACOSX_DEPLOYMENT_TARGET=10.4 make
>
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090114/35348663/attachment.html>


More information about the llvm-dev mailing list