[Interest] Bug (?) in qtbase/configure for Mac
Eric Feigenson
eric at feigenson.net
Tue May 13 00:26:53 CEST 2014
In this case "Correct" means the value of -sdk macosx10.8 is used. Otherwise it's ignored and I get the wrong value for -isysroot.
If the line in qdevice.pri is:
!host_build:QMAKE_MAC_SDK = macosx10.8
then the value of QMAKE_MAC_SDK is null/undefined. In that case, what I see is this:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -c -o qlibraryinfo.o -pipe -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk ...
It appears that the -sdk macosx10.8 flag is being ignored in this case.
If the line is:
QMAKE_MAC_SDK = macosx10.8
Then this happens:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -c -o qlibraryinfo.o -pipe -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk ...
Which is what I'd expect.
I tried tracing through configure and make to figure out where all this happens, but I haven't been able to so far. My evidence is circumstantial, but in order to be able to build with -sdk macosx10.8, I had to make the change indicated in configure.
Regards,
Eric
On May 9, 2014, at 1:18 AM, Thiago Macieira <thiago.macieira at intel.com> wrote:
> Em sex 09 maio 2014, às 00:42:46, Eric Feigenson escreveu:
>> !host_build:QMAKE_MAC_SDK = macox10.8
>>
>> The correct line should be:
>>
>> QMAKE_MAC_SDK = macox10.8
>
> Why is this line correct?
>
> --
> Thiago Macieira - thiago.macieira (AT) intel.com
> Software Architect - Intel Open Source Technology Center
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20140512/7ce06993/attachment.html>
More information about the Interest
mailing list