Uploaded image for project: 'Qbs ("Cubes")'
  1. Qbs ("Cubes")
  2. QBS-1273

Duplicated libraries entries dropped in by Depends

    XMLWordPrintable

Details

    • 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

        Activity

          People

            kandeler Christian Kandeler
            arrigo arrigo zanette
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There is 1 open Gerrit change