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

qbs only look at direct dependicies when choosing gcc or g++ linker

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • 2.4.2
    • None

    Description

      Here is simplified example. (I use gcc toolchain, bur problem is )

      I have `my_c_static` - statically compiled c-library, 'my_cpp_static' - staticaly compiled cpp library and `my_dynamic` - dynamicaly linked library.

      Error occures when 'my_c_static' depends on 'my_cpp_static', and 'my_dynamic' depends on 'my_c_static', is this case qbs looking through all inputs, finding no `cpp_obj` or `cpp_staticlibrary` chooses gcc as linker, what results is linker errors because there is cpp library that is being linked to this binary.

      If i directly(or via export in `my_c_static`) make a dependency from `my_dynamic` to `my_cpp_static`, g++  is chosen correctly and project compiles

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kandeler Christian Kandeler
            mrdex123 Ilya Lysenko
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes