FS#45747 - [qt5-base] PKGBUILD prevents use of GCC's LTO
Attached to Project:
Arch Linux
Opened by Justin Zane Chudgar (justinzane) - Thursday, 23 July 2015, 02:30 GMT
Last edited by Antonio Rojas (arojas) - Saturday, 26 August 2017, 21:54 GMT
Opened by Justin Zane Chudgar (justinzane) - Thursday, 23 July 2015, 02:30 GMT
Last edited by Antonio Rojas (arojas) - Saturday, 26 August 2017, 21:54 GMT
|
Details
Description:
The PKGBUILD for qt5-base currently specifies '-no-use-gold-linker' amidst its configuration options. Even removing this line is not sufficient to allow building with: C(XX)FLAGS="$C(XX)FLAGS -flto" LD="/usr/bin/ld.gold -plugin=/usr/lib/bfd-plugins/liblto_plugin.so" What happens is that the compile command line looks like: ccache g++ -c <makepkg-conf_CXXFLAGS> \ -O2 \ <makepkg-conf_CXXFLAGS> \ #AGAIN! -std=c++0x -fno-exceptions -Wall -W -D<...> -I<...> file.o file.cpp The link flags look like: /usr/bin/ld.gold -plugin=/usr/lib/bfd-plugins/liblto_plugin.so \ <makepkg-conf_LDFLAGS> \ -Wl,--gc-sections \ <makepkg-conf_LDFLAGS> \ #AGAIN -fuse-ld=gold -Wl,--enable-new-dtags \ -o ... As far as I can tell, the inappropriate use of '-fuse-ld-gold' is an upstream bug. Guidance as to how to remove this flag would be excellent. I'm unclear on why the CFLAGS/CXXFLAGS/LDFLAGS end up getting duplicated in the final commands. Steps to reproduce: |
This task depends upon
Closed by Antonio Rojas (arojas)
Saturday, 26 August 2017, 21:54 GMT
Reason for closing: No response
Saturday, 26 August 2017, 21:54 GMT
Reason for closing: No response
Comment by Antonio Rojas (arojas) -
Saturday, 19 August 2017, 18:38 GMT
Is this still an issue with recent Qt?