On Fri, Jun 5, 2009 at 4:15 AM, Jean-Marc Lasgouttes<lasgout...@lyx.org> wrote:
> BH <bewih...@gmail.com> writes:
>> When we were having problems figuring out how to create universal
>> binaries, Konrad discovered that we needed the following:
>>
>> SDKROOT="/Developer/SDKs/MacOSX10.5.sdk"; export SDKROOT
>> CFLAGS="-isysroot ${SDKROOT}"; export CFLAGS
>> CPPFLAGS="-isysroot ${SDKROOT}"; export CPPFLAGS
>> LDFLAGS="-isysroot ${SDKROOT} -Wl,-syslibroot,${SDKROOT}
>> -Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:${SDKROOT}/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib";
>> export LDFLAGS
>
> OK, I read about this sdkroot stuff and found pages like this one:
> http://www.cocoabuilder.com/archive/message/xcode/2009/3/19/27789
>
> Things to check:
>
> * Do you have the latest Xcode?

I believe so: 3.1.2.

> * Is there a /Developer/SDKs/MacOSX10.5.sdk/usr/local directory?

Yes. In it there is a link to /usr/local/lib, which has an aspell
directory. Should I create a link in
/Developer/SDKs/MacOSX10.5.sdk/usr/local/ to /usr/local/include as
well? (Wouldn't that be the same as including a --with-extra-inc line
when configuring? If so, I'd prefer to do it explicitly so that I
don't forget when upgrading to a new machine.)

> * If it does not exist, does
>    ln -s /usr/local /Developer/SDKs/MacOSX10.5.sdk/
>  help?
>
>> Taking all this out -- which I have set in .bashrc -- means I have no
>> problems configuring.
>
> The question is probably to be sure of what you want to achieve. I
> thought that SDK were useful to build on 10.5 a version that is
> compatible with 10.4, for example.

I'm not sure I'm understanding, so perhaps I'm repeating you: for
release builds we use the 10.5 SDK with
MACOSX_DEPLOYMENT_TARGET="10.4" so as to be more compatible.

BH

Reply via email to