PDA

View Full Version : Weird QMake static feature limitation



Noxerus
3rd April 2009, 16:02
If we open the file "mkspecs\features\static.prf" we can see that the use of the QMAKE_CFLAGS_STATIC_LIB variable is limited to the unix platform by default. I cannot see any reason for this behavior, especially seeing how useful this variable could be on Windows. If this wasn't the case, then the "mkspecs\win32-msvc2008\qmake.conf" could have contained the line "QMAKE_CFLAGS_STATIC_LIB -= -GL" to prevent whole program optimization for static libraries, for example.
Of course, these changes are easily done post-installation, but does any one have any idea why the QMAKE_CFLAGS_STATIC_LIB variable is limited to the unix platform by default?

I hope I've explained the situation well enough. If not, I will be happy to clarify.