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

Libraries from /usr/local/lib are not found when using gold linker

    XMLWordPrintable

Details

    • Linux/X11
    • 7f47efe5b (2.2)

    Description

      Hello,

      on Linux `cpp.systemRunPaths` are auto detected via `ldconfig`. But the gold linker does not rely on values configured with/for ldconfig. So when trying to link against libraries which are placed in `/usr/local/lib` Qbs assumes that the linker searches automatically this directory too and does not append `-L/usr/local/lib`.

      Either the `runPathsProbe` in `LinuxGCC.qbs` has to be updated to respect other linkers or `linkerFlags` in `gcc.js` should not remove `systemRunPaths`-paths from `libraryPaths`.

      Attachments

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

        Activity

          People

            kandeler Christian Kandeler
            Psy-Kai Kai Dohmen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes