qt5base-lts/mkspecs
Thiago Macieira fe6f4b9ad7 Fix linking of sources without LTCG to a static lib with LTCG
Whenever a binary is created and linked against a static lib that was
compiled with LTCG, the final linking step requires the compiler flags
so that the pre-compiled data in the shared library can get properly
compiled.

This could happen for a static build of Qt with LTCG, but also happens
frequently for Qt's own build when linking regular libraries and
applications against QtBootstrap or QtPlatformSupport. The linking fails
when the target is a shared library (example: QtWaylandClient linking
against QtPlatformSupport).

The .prl file actually contains the "ltcg" flag, so the best solution
would actually be to process that flag there and add link_ltcg if any
dependent .prl has "ltcg", but I couldn't find out how to do that.

Change-Id: I4a75a14d1dcb8c2089a427285e25d5555df7d7d3
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
2014-12-01 21:33:31 +01:00
..
aix-g++ Update license headers and add new license files 2014-09-24 12:26:19 +02:00
aix-g++-64 Update license headers and add new license files 2014-09-24 12:26:19 +02:00
aix-xlc Update license headers and add new license files 2014-09-24 12:26:19 +02:00
aix-xlc-64 Update license headers and add new license files 2014-09-24 12:26:19 +02:00
android-g++ Update license headers and add new license files 2014-09-24 12:26:19 +02:00
blackberry-armle-v7-qcc Update license headers and add new license files 2014-09-24 12:26:19 +02:00
blackberry-armv7le-qcc Update license headers and add new license files 2014-09-24 12:26:19 +02:00
blackberry-x86-qcc Update license headers and add new license files 2014-09-24 12:26:19 +02:00
common Merge remote-tracking branch 'origin/5.4' into 5.4.0 2014-11-10 11:45:49 +01:00
cygwin-g++ Update license headers and add new license files 2014-09-24 12:26:19 +02:00
darwin-g++ Update license headers and add new license files 2014-09-24 12:26:19 +02:00
devices Raspi: default platform plugin is eglfs 2014-10-30 13:44:29 +01:00
features Fix linking of sources without LTCG to a static lib with LTCG 2014-12-01 21:33:31 +01:00
freebsd-g++ Update license headers and add new license files 2014-09-24 12:26:19 +02:00
freebsd-g++46 Update license headers and add new license files 2014-09-24 12:26:19 +02:00
freebsd-icc Update license headers and add new license files 2014-09-24 12:26:19 +02:00
hpux-acc Update license headers and add new license files 2014-09-24 12:26:19 +02:00
hpux-acc-64 Update license headers and add new license files 2014-09-24 12:26:19 +02:00
hpux-acc-o64 Update license headers and add new license files 2014-09-24 12:26:19 +02:00
hpux-g++ Update license headers and add new license files 2014-09-24 12:26:19 +02:00
hpux-g++-64 Update license headers and add new license files 2014-09-24 12:26:19 +02:00
hpuxi-acc-32 Update license headers and add new license files 2014-09-24 12:26:19 +02:00
hpuxi-acc-64 Update license headers and add new license files 2014-09-24 12:26:19 +02:00
hpuxi-g++-64 Update license headers and add new license files 2014-09-24 12:26:19 +02:00
hurd-g++ Update license headers and add new license files 2014-09-24 12:26:19 +02:00
irix-cc Update license headers and add new license files 2014-09-24 12:26:19 +02:00
irix-cc-64 Update license headers and add new license files 2014-09-24 12:26:19 +02:00
irix-g++ Update license headers and add new license files 2014-09-24 12:26:19 +02:00
irix-g++-64 Update license headers and add new license files 2014-09-24 12:26:19 +02:00
linux-arm-gnueabi-g++ Update license headers and add new license files 2014-09-24 12:26:19 +02:00
linux-clang Update license headers and add new license files 2014-09-24 12:26:19 +02:00
linux-clang-libc++ Update license headers and add new license files 2014-09-24 12:26:19 +02:00
linux-cxx Update license headers and add new license files 2014-09-24 12:26:19 +02:00
linux-g++ Update license headers and add new license files 2014-09-24 12:26:19 +02:00
linux-g++-32 Update license headers and add new license files 2014-09-24 12:26:19 +02:00
linux-g++-64 Update license headers and add new license files 2014-09-24 12:26:19 +02:00
linux-icc Update license headers and add new license files 2014-09-24 12:26:19 +02:00
linux-icc-32 Update license headers and add new license files 2014-09-24 12:26:19 +02:00
linux-icc-64 Update license headers and add new license files 2014-09-24 12:26:19 +02:00
linux-kcc Update license headers and add new license files 2014-09-24 12:26:19 +02:00
linux-llvm Update license headers and add new license files 2014-09-24 12:26:19 +02:00
linux-lsb-g++ Update license headers and add new license files 2014-09-24 12:26:19 +02:00
linux-pgcc Update license headers and add new license files 2014-09-24 12:26:19 +02:00
lynxos-g++ Update license headers and add new license files 2014-09-24 12:26:19 +02:00
macx-clang Add CFBundleIdentifier to the bundle Info.plist's 2014-11-10 16:04:12 +01:00
macx-clang-32 Add CFBundleIdentifier to the bundle Info.plist's 2014-11-10 16:04:12 +01:00
macx-g++ Add CFBundleIdentifier to the bundle Info.plist's 2014-11-10 16:04:12 +01:00
macx-g++40 Add CFBundleIdentifier to the bundle Info.plist's 2014-11-10 16:04:12 +01:00
macx-g++42 Add CFBundleIdentifier to the bundle Info.plist's 2014-11-10 16:04:12 +01:00
macx-g++-32 Add CFBundleIdentifier to the bundle Info.plist's 2014-11-10 16:04:12 +01:00
macx-icc Work around ICC compatibility problem with Apple headers 2014-11-22 20:02:49 +01:00
macx-ios-clang macx-ios-clang: only provide default LaunchScreen.xib if using Xcode 6 2014-11-28 13:20:51 +01:00
macx-llvm Add CFBundleIdentifier to the bundle Info.plist's 2014-11-10 16:04:12 +01:00
macx-xcode Update license headers and add new license files 2014-09-24 12:26:19 +02:00
modules update readme to current reality 2012-01-27 13:55:27 +01:00
netbsd-g++ Update license headers and add new license files 2014-09-24 12:26:19 +02:00
openbsd-g++ Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qnx-armle-v7-qcc Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qnx-armv7le-qcc Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qnx-x86-qcc Update license headers and add new license files 2014-09-24 12:26:19 +02:00
sco-cc Update license headers and add new license files 2014-09-24 12:26:19 +02:00
sco-g++ Update license headers and add new license files 2014-09-24 12:26:19 +02:00
solaris-cc Update license headers and add new license files 2014-09-24 12:26:19 +02:00
solaris-cc-64 Update license headers and add new license files 2014-09-24 12:26:19 +02:00
solaris-cc-64-stlport Update license headers and add new license files 2014-09-24 12:26:19 +02:00
solaris-cc-stlport Update license headers and add new license files 2014-09-24 12:26:19 +02:00
solaris-g++ Update license headers and add new license files 2014-09-24 12:26:19 +02:00
solaris-g++-64 Update license headers and add new license files 2014-09-24 12:26:19 +02:00
tru64-cxx Update license headers and add new license files 2014-09-24 12:26:19 +02:00
tru64-g++ Update license headers and add new license files 2014-09-24 12:26:19 +02:00
unixware-cc Update license headers and add new license files 2014-09-24 12:26:19 +02:00
unixware-g++ Update license headers and add new license files 2014-09-24 12:26:19 +02:00
unsupported Merge remote-tracking branch 'origin/5.3' into 5.4.0 2014-11-10 11:39:35 +01:00
win32-g++ Update license headers and add new license files 2014-09-24 12:26:19 +02:00
win32-icc Update license headers and add new license files 2014-09-24 12:26:19 +02:00
win32-msvc2005 Update license headers and add new license files 2014-09-24 12:26:19 +02:00
win32-msvc2008 Update license headers and add new license files 2014-09-24 12:26:19 +02:00
win32-msvc2010 Update license headers and add new license files 2014-09-24 12:26:19 +02:00
win32-msvc2012 Update license headers and add new license files 2014-09-24 12:26:19 +02:00
win32-msvc2013 Update license headers and add new license files 2014-09-24 12:26:19 +02:00
wince60standard-armv4i-msvc2005 WinCE: fix DLL build errors with CONFIG+=console 2014-10-08 13:05:05 +02:00
wince60standard-x86-msvc2005 WinCE: fix DLL build errors with CONFIG+=console 2014-10-08 13:05:05 +02:00
wince70embedded-armv4i-msvc2008 WinCE: fix DLL build errors with CONFIG+=console 2014-10-08 13:05:05 +02:00
wince70embedded-x86-msvc2008 WinCE: fix DLL build errors with CONFIG+=console 2014-10-08 13:05:05 +02:00
winphone-arm-msvc2012 Update license headers and add new license files 2014-09-24 12:26:19 +02:00
winphone-arm-msvc2013 Update license headers and add new license files 2014-09-24 12:26:19 +02:00
winphone-x86-msvc2012 Update license headers and add new license files 2014-09-24 12:26:19 +02:00
winphone-x86-msvc2013 Update license headers and add new license files 2014-09-24 12:26:19 +02:00
winrt-arm-msvc2012 Update license headers and add new license files 2014-09-24 12:26:19 +02:00
winrt-arm-msvc2013 Update license headers and add new license files 2014-09-24 12:26:19 +02:00
winrt-x64-msvc2012 Update license headers and add new license files 2014-09-24 12:26:19 +02:00
winrt-x64-msvc2013 Update license headers and add new license files 2014-09-24 12:26:19 +02:00
winrt-x86-msvc2012 Update license headers and add new license files 2014-09-24 12:26:19 +02:00
winrt-x86-msvc2013 Update license headers and add new license files 2014-09-24 12:26:19 +02:00