Details
-
Bug
-
Resolution: Done
-
Not Evaluated
-
1.10.0
-
None
-
a8bb88572d2f0c39d3841d082cd956593cfe403e (qbs/qbs/master)
Description
Consider, for example, an application linking several dependent libraries having, for instance, a dependency on Qt, so declaring an item
Export { Depends { name: "Qt.core" } }
The linker command line will have Qt libraries dependencies for each imported module (+1? ), while it would be enough to have just the last one (to catch unresolved symbols from all dependent libraries):
/usr/bin/g++-5 -L/opt/Qt/5.10.0/gcc_64/lib -m64 -o /home/user/workspace/build-qbsttest-qt_5_10-Debug/qtc_qt_5_10_Debug/main.b28b7af6/main /home/user/workspace/build-qbsttest-qt_5_10-Debug/qtc_qt_5_10_Debug/main.b28b7af6/3a52ce780950d4d9/main.cpp.o -Wl,-m,elf_x86_64,-rpath,/opt/Qt/5.10.0/gcc_64/lib /home/user/workspace/build-qbsttest-qt_5_10-Debug/qtc_qt_5_10_Debug/c.84a51684/libc.a /home/user/workspace/build-qbsttest-qt_5_10-Debug/qtc_qt_5_10_Debug/b.e9d71f5e/libb.a /home/user/workspace/build-qbsttest-qt_5_10-Debug/qtc_qt_5_10_Debug/a.86f7e437/liba.a /opt/Qt/5.10.0/gcc_64/lib/libQt5Core.so.5.10.0 -lpthread /opt/Qt/5.10.0/gcc_64/lib/libQt5Core.so.5.10.0 -lpthread /opt/Qt/5.10.0/gcc_64/lib/libQt5Core.so.5.10.0 -lpthread /opt/Qt/5.10.0/gcc_64/lib/libQt5Core.so.5.10.0 -lpthread
Attachments
For Gerrit Dashboard: QBS-1273 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
216781,2 | [GCC] Remove dynamic libraries duplicates | master | qbs/qbs | Status: NEW | 0 | 0 |