X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=cirros-testvm%2Fsrc-cirros%2Fbuildroot-2015.05%2Fpackage%2Fqt5%2Fqt5base%2F0005-no-gold-linker-for-host-build.patch;fp=cirros-testvm%2Fsrc-cirros%2Fbuildroot-2015.05%2Fpackage%2Fqt5%2Fqt5base%2F0005-no-gold-linker-for-host-build.patch;h=99d5928ab629dd38532fff3dde2bc0eb5d10f02b;hb=b0a0f15dfaa205161a7fcb20cf1b8cd4948c2ef3;hp=0000000000000000000000000000000000000000;hpb=c6ac3cd55ee2da956195eee393b0882105dfad4e;p=packages%2Ftrusty%2Fcirros-testvm.git diff --git a/cirros-testvm/src-cirros/buildroot-2015.05/package/qt5/qt5base/0005-no-gold-linker-for-host-build.patch b/cirros-testvm/src-cirros/buildroot-2015.05/package/qt5/qt5base/0005-no-gold-linker-for-host-build.patch new file mode 100644 index 0000000..99d5928 --- /dev/null +++ b/cirros-testvm/src-cirros/buildroot-2015.05/package/qt5/qt5base/0005-no-gold-linker-for-host-build.patch @@ -0,0 +1,27 @@ +Use the gold linker only for target builds + +Availability of the gold linker is only tested with the +cross-compiler, not the host compiler, so Qt shouldn't assume it's +available when doing host builds. + +This fixes build failures occuring when cross-compiling Qt5 with a +gold capable cross-compiler, on a host that has a too old compiler to +support gold. + +Bug reported upstream at https://bugreports.qt.io/browse/QTBUG-46125. + +Signed-off-by: Thomas Petazzoni + +Index: b/mkspecs/features/default_post.prf +=================================================================== +--- a/mkspecs/features/default_post.prf ++++ b/mkspecs/features/default_post.prf +@@ -62,7 +62,7 @@ + QMAKE_LIBFLAGS += $$QMAKE_LIBFLAGS_RELEASE + } + +-use_gold_linker: QMAKE_LFLAGS += $$QMAKE_LFLAGS_USE_GOLD ++!host_build: use_gold_linker: QMAKE_LFLAGS += $$QMAKE_LFLAGS_USE_GOLD + + dll:win32: QMAKE_LFLAGS += $$QMAKE_LFLAGS_DLL + static:mac: QMAKE_LFLAGS += $$QMAKE_LFLAGS_STATIC_LIB