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

gc_sections needs to be propagated from Core to other modules / executables in CMake configs

    XMLWordPrintable

Details

    • Task
    • Resolution: Done
    • P2: Important
    • None
    • None
    • Build System: CMake

    Description

      There are a few parts to this:

      1) It looks like gc_sections is a public feature, and thus consumers of Core need the same flags as set by mkspecs/features/gc_sections.prf. At least that's what I saw when calling qmake -d on lrelease.

      2) Currently qt_internal_add_link_flags_gc_sections only sets link flags, whereas it should also set compile flags per specific compiler / target.

      This was discovered while investigating lrelease segfaults in cmake static builds at

      https://codereview.qt-project.org/c/qt/qttranslations/+/301471

      and the fix at

      https://codereview.qt-project.org/c/qt/qtbase/+/301837

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-84461
          # 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