All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 6/6] qt5base: add patch to fix gold linker issue
@ 2015-05-19 18:49 Peter Seiderer
  0 siblings, 0 replies; 5+ messages in thread
From: Peter Seiderer @ 2015-05-19 18:49 UTC (permalink / raw)
  To: buildroot

Hello Thomas,

On Sat, May 16, 2015 at 03:31:30PM +0200, Thomas Petazzoni wrote:
> Dear Peter Korsgaard,
> 
> On Sat, 16 May 2015 15:13:44 +0200, Peter Korsgaard wrote:
> > >>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@free-electrons.com> writes:
> > 
> >  > The newly added patch makes sure that gold linker functionality is not
> >  > used when doing host builds, since qt5 only tests the availability of
> >  > this feature with the target compiler.
> > 
> >  > Fixes:
> > 
> >  >   http://autobuild.buildroot.net/results/f403a76ac0abbf8488373c0dffb4487f5d98c55d/
> > 
> >  > Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
> > 
> > Committed, thanks. Don't forget to send the patch upstream.
> 
> I already submitted the patch as part of a bug report, which URL is
> mentioned in my Buildroot patch. However, they ask me to follow the
> entire Qt contribution process for just a one line patch, which I'm not
> sure I'm willing to do :-/
> 

If you don't mind I can (try to) submit your one line patch through
the Qt contribution process?

Regards,
Peter

> Thomas
> -- 
> Thomas Petazzoni, CTO, Free Electrons
> Embedded Linux, Kernel and Android engineering
> http://free-electrons.com
> 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH 6/6] qt5base: add patch to fix gold linker issue
  2015-05-16 13:31     ` Thomas Petazzoni
@ 2015-05-16 13:35       ` Peter Korsgaard
  0 siblings, 0 replies; 5+ messages in thread
From: Peter Korsgaard @ 2015-05-16 13:35 UTC (permalink / raw)
  To: buildroot

>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@free-electrons.com> writes:

Hi,

>> Committed, thanks. Don't forget to send the patch upstream.

 > I already submitted the patch as part of a bug report, which URL is
 > mentioned in my Buildroot patch. However, they ask me to follow the
 > entire Qt contribution process for just a one line patch, which I'm not
 > sure I'm willing to do :-/

Sorry, somehow I missed that line in the patch description.

Yeah, I understand that you don't want to go through a bunch of hoops
for that patch.

-- 
Venlig hilsen,
Peter Korsgaard 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH 6/6] qt5base: add patch to fix gold linker issue
  2015-05-16 13:13   ` Peter Korsgaard
@ 2015-05-16 13:31     ` Thomas Petazzoni
  2015-05-16 13:35       ` Peter Korsgaard
  0 siblings, 1 reply; 5+ messages in thread
From: Thomas Petazzoni @ 2015-05-16 13:31 UTC (permalink / raw)
  To: buildroot

Dear Peter Korsgaard,

On Sat, 16 May 2015 15:13:44 +0200, Peter Korsgaard wrote:
> >>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@free-electrons.com> writes:
> 
>  > The newly added patch makes sure that gold linker functionality is not
>  > used when doing host builds, since qt5 only tests the availability of
>  > this feature with the target compiler.
> 
>  > Fixes:
> 
>  >   http://autobuild.buildroot.net/results/f403a76ac0abbf8488373c0dffb4487f5d98c55d/
> 
>  > Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
> 
> Committed, thanks. Don't forget to send the patch upstream.

I already submitted the patch as part of a bug report, which URL is
mentioned in my Buildroot patch. However, they ask me to follow the
entire Qt contribution process for just a one line patch, which I'm not
sure I'm willing to do :-/

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH 6/6] qt5base: add patch to fix gold linker issue
  2015-05-15 18:23 ` [Buildroot] [PATCH 6/6] qt5base: add patch to fix gold linker issue Thomas Petazzoni
@ 2015-05-16 13:13   ` Peter Korsgaard
  2015-05-16 13:31     ` Thomas Petazzoni
  0 siblings, 1 reply; 5+ messages in thread
From: Peter Korsgaard @ 2015-05-16 13:13 UTC (permalink / raw)
  To: buildroot

>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@free-electrons.com> writes:

 > The newly added patch makes sure that gold linker functionality is not
 > used when doing host builds, since qt5 only tests the availability of
 > this feature with the target compiler.

 > Fixes:

 >   http://autobuild.buildroot.net/results/f403a76ac0abbf8488373c0dffb4487f5d98c55d/

 > Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>

Committed, thanks. Don't forget to send the patch upstream.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH 6/6] qt5base: add patch to fix gold linker issue
  2015-05-15 18:23 [Buildroot] [PATCH 1/6] boost: disable on NIOS 2 with broken toolchains Thomas Petazzoni
@ 2015-05-15 18:23 ` Thomas Petazzoni
  2015-05-16 13:13   ` Peter Korsgaard
  0 siblings, 1 reply; 5+ messages in thread
From: Thomas Petazzoni @ 2015-05-15 18:23 UTC (permalink / raw)
  To: buildroot

The newly added patch makes sure that gold linker functionality is not
used when doing host builds, since qt5 only tests the availability of
this feature with the target compiler.

Fixes:

  http://autobuild.buildroot.net/results/f403a76ac0abbf8488373c0dffb4487f5d98c55d/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
 .../0005-no-gold-linker-for-host-build.patch       | 27 ++++++++++++++++++++++
 1 file changed, 27 insertions(+)
 create mode 100644 package/qt5/qt5base/0005-no-gold-linker-for-host-build.patch

diff --git a/package/qt5/qt5base/0005-no-gold-linker-for-host-build.patch b/package/qt5/qt5base/0005-no-gold-linker-for-host-build.patch
new file mode 100644
index 0000000..99d5928
--- /dev/null
+++ b/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 <thomas.petazzoni@free-electrons.com>
+
+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
-- 
2.1.0

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-05-19 18:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-19 18:49 [Buildroot] [PATCH 6/6] qt5base: add patch to fix gold linker issue Peter Seiderer
  -- strict thread matches above, loose matches on Subject: below --
2015-05-15 18:23 [Buildroot] [PATCH 1/6] boost: disable on NIOS 2 with broken toolchains Thomas Petazzoni
2015-05-15 18:23 ` [Buildroot] [PATCH 6/6] qt5base: add patch to fix gold linker issue Thomas Petazzoni
2015-05-16 13:13   ` Peter Korsgaard
2015-05-16 13:31     ` Thomas Petazzoni
2015-05-16 13:35       ` Peter Korsgaard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.