Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-83497

Fix rpath handling to enable relocatable builds

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • None
    • 6.0.0
    • Build System
    • None

    Description

      This is needed for the Coin task that reuses host artifacts for target builds.

      Specifically the rpaths that are to be embedded into $prefix/bin apps, into libraries, frameworks and plugins are different. They differ between OSes as well, e.g. $ORIGIN vs @loader_path or @executable_path.

      This also needs to support the qmake configure equivalent of "-R ." where "." is a relative path relative to ${CMAKE_INSTALL_PREFIX}/${INSTALL_LIBDIR}.

      Also on macOS we have some additional uikit vs non uikit checks for shallow bundles.

      And we might need some of the "-rpath-link" magic on linux, but i'm not sure yet why that's added by qmake only to 2 tests and 1 plugin in a linux desktop configuration.

      Obviously this doesn't affect Windows and static builds (I hope).

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-83497
          # Subject Branch Project Status CR V

          Activity

            People

              alexandru.croitor Alexandru Croitor
              alexandru.croitor Alexandru Croitor
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes