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

It is impossible to have clean rpath without explicit use of linkerFlags

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3: Somewhat important P3: Somewhat important
    • 2.2.0
    • 1.6.0
    • General
    • None
    • Linux
    • 4c3b9ef8e (master)

      I want to build a binary which have exactly one rpath $ORIGIN/../lib.
      For that I should write

      cpp.rpaths: ["$ORIGIN/../lib"]
      

      However QBS forces two another entries which could not be disabled:
      $ORIGIN from share/qbs/modules/cpp/LinuxGCC.qbs and Qt libPath from core.qbs of QtCore module.
      To work around this I have to disable cpp.useRPaths and fall back to cpp.linkerFlags.

      I think QBS should not implicitly fill this property.

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

            kandeler Christian Kandeler
            kds Denis Klychkov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes