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

    • Type: Bug
    • Status: Reported
    • Priority: Not Evaluated
    • Resolution: Unresolved
    • Affects Version/s: 1.13.0
    • Fix Version/s: None
    • Labels:
      None
    • Platform/s:
      Linux/X11

      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

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

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes