qt5: bump version to 5.5.0
[buildroot-gz.git] / package / qt5 / qt5base / 0005-no-gold-linker-for-host-build.patch
blob3dc9a6d50d5c78621008b11a6d0e36d2454f6a79
1 From 2cb4b7e947f64580592afaf221d4b261d980bb45 Mon Sep 17 00:00:00 2001
2 From: Peter Seiderer <ps.report@gmx.net>
3 Date: Tue, 19 May 2015 21:30:21 +0200
4 Subject: [PATCH] Disable gold linker/new dtags support for host builds
6 There is no test for gold linker and new dtags support for the host build
7 (only for the target compiler/build) which leads to trouble in some cross
8 compiling environments (see [1] for details).
10 So disable gold linker/new dtags support unconditionally for host builds.
12 [1] http://lists.busybox.net/pipermail/buildroot/2015-May/128303.html
14 Task-number: QTBUG-46125
15 Change-Id: Ic62828704dcce461487d63860705158cce3e4af8
16 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
17 ---
18 mkspecs/features/default_post.prf | 7 +++++--
19 1 file changed, 5 insertions(+), 2 deletions(-)
21 diff --git a/mkspecs/features/default_post.prf b/mkspecs/features/default_post.prf
22 index 8e68b95..bcaddc8 100644
23 --- a/mkspecs/features/default_post.prf
24 +++ b/mkspecs/features/default_post.prf
25 @@ -62,8 +62,11 @@ debug {
26 QMAKE_LIBFLAGS += $$QMAKE_LIBFLAGS_RELEASE
29 -use_gold_linker: QMAKE_LFLAGS += $$QMAKE_LFLAGS_USE_GOLD
30 -enable_new_dtags: QMAKE_LFLAGS += $$QMAKE_LFLAGS_NEW_DTAGS
31 +# disable special linker flags for host builds (no proper test for host support yet)
32 +!host_build {
33 + use_gold_linker: QMAKE_LFLAGS += $$QMAKE_LFLAGS_USE_GOLD
34 + enable_new_dtags: QMAKE_LFLAGS += $$QMAKE_LFLAGS_NEW_DTAGS
37 dll:win32: QMAKE_LFLAGS += $$QMAKE_LFLAGS_DLL
38 static:mac: QMAKE_LFLAGS += $$QMAKE_LFLAGS_STATIC_LIB
39 --
40 2.1.0