Bug 97009
Summary: | [Qt] Gold linker isn't used on Ubuntu | ||
---|---|---|---|
Product: | WebKit | Reporter: | Csaba Osztrogonác <ossy> |
Component: | New Bugs | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED FIXED | ||
Severity: | Normal | CC: | hausmann, ossy, vestbo, zarvai |
Priority: | P2 | Keywords: | Qt, QtTriaged |
Version: | 528+ (Nightly build) | ||
Hardware: | All | ||
OS: | All |
Csaba Osztrogonác
Tools/qmake/mkspecs/features/unix/default_post.prf:
----------------------------------------------------
!scratchbox:!mac:exists(/usr/bin/ld.gold) {
# Upstream gcc 4.7 does not support the -fuse-ld=gold option ( see: http://sourceware.org/ml/binutils/2011-01/msg00178.html )
isEqual(QT_GCC_MAJOR_VERSION, 4):lessThan(QT_GCC_MINOR_VERSION, 7):QMAKE_LFLAGS += -fuse-ld=gold
}
It seems -fuse-ld=gold doesn't work on Ubuntu 11.10 (maybe other distros and other Ubuntus have same problem)
http://manpages.ubuntu.com/manpages/oneiric/man1/arm-linux-gnueabi-gcc-4.4.1.html
----------------------------------------------------------------------------------
-fuse-ld=gold
Use the gold linker instead of the default linker. This option is
only necessary if GCC has been configured with --enable-gold=both
or --enable-gold=both/ld. Note: Backported for Debian/Ubuntu from
GCC 4.5.
-fuse-ld=bfd
Use the ld.bfd linker instead of the default linker. This option
is only necessary if GCC has been configured with
--enable-gold=both/gold. Note: Backported for Debian/Ubuntu from
GCC 4.5.
But the manualt of gcc doesn't contain this options - http://manpages.ubuntu.com/manpages/oneiric/man1/gcc-4.6.1.html
It seems Ubuntu's GCC doesn't build with this option, so -fuse-ld=gold won't work at all,
we need better way to force using gold linker.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Csaba Osztrogonác
forcing gold linker was removed, so it isn't problem anymore:
https://trac.webkit.org/changeset/128885