RESOLVED FIXED 97009
[Qt] Gold linker isn't used on Ubuntu
https://bugs.webkit.org/show_bug.cgi?id=97009
Summary [Qt] Gold linker isn't used on Ubuntu
Csaba Osztrogonác
Reported 2012-09-18 06:19:36 PDT
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
Csaba Osztrogonác
Comment 1 2012-09-18 06:44:29 PDT
forcing gold linker was removed, so it isn't problem anymore: https://trac.webkit.org/changeset/128885
Note You need to log in before you can comment on or make changes to this bug.