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

Change the order of libraries and object files in the generated .prl files

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 6.2.0 Alpha
    • 6.0, 6.1, 6.2
    • Build System: CMake
    • None
    • Linux/Wayland, Linux/X11, Linux/Yocto, Linux/Other display system, Windows
    • 5cc3105807a7f1868b067e5d9757acab0a2bb8e8 (qt/qtbase/dev)

    Description

      For the gcc compiler family order of the static libraries is critical in case of a partial archive linking. If an object file uses symbols of the static library it either should be placed before the library in the linker command line or wrapped with the --start/end-group options.
      This paradigm should be implemented in the generated .prl files.

      Currently, this may cause the 'undefined reference' issue to the QtCore symbols when linking to a static plugin that uses qt resources.

      Attachments

        Activity

          People

            semlanik Alexey Edelev
            semlanik Alexey Edelev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: