[Development] Qt 5.6.0-rc build issues on CentOS 6.7 x86_64 with g++
Thiago Macieira
thiago.macieira at intel.com
Fri Mar 4 08:27:30 CET 2016
On sexta-feira, 4 de março de 2016 07:07:00 PST Walter Stefan wrote:
> I have done a clean build.
>
> Where can we address this issue?
I've managed to reproduce this issue now. It only happens with the old bfd
linker (ld.bfd). Gold appears unaffected.
Workaround: do not use the convenience qt-everywhere-* tarball. Build each
module independently.
Ossi: have there been changes to rpath or rpath-link handling recently? We
need to bring it back.
The command-line for linking the example was:
g++ -Wl,-O1 -fuse-ld=bfd -Wl,--enable-new-dtags -Wl,-z,origin -Wl,-rpath,\
$ORIGIN/../../../lib -o annotatedurl .obj/main.o .obj/mainwindow.o .obj/
annotatedurl.o .obj/moc_mainwindow.o .obj/moc_annotatedurl.o -L/tmp/qt-build/
qtbase/lib -lQt5Widgets.t -lQt5Gui.t -L/tmp/qt-build/qtconnectivity/lib -
lQt5Nfc.t -lQt5Core.t -lGL -lpthread
Every Qt module path in an -L option needs to be repeated with -Wl,-rpath-
link,
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
More information about the Development
mailing list