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"? Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090114/23a27640/attachment.html>
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, -Chris -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090114/d028f5b9/attachment.html>
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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090114/495ea1f3/attachment.html>