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

Support for GNU thin archives when creating static libraries with qmake

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • None
    • Build tools: qmake
    • None

    Description

      When using the GNU toolchain, we create static libraries in a way that copies the object files into the archive.

      GNU ar supports so-called thin archives that avoid copying the entire object file into the archive and instead stores the path to it in the archive, relative to the location of the .a file.

      Thin archives are therefore much faster to create and result in overall less disk usage by avoiding the duplication of data.

      It would be nice if qmake had built-in support for using thin archives if they are available. It should be opt-in, so that projects that use static libraries for internal usage (no intent of installing them) can use them if available.

      Attachments

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

        Activity

          People

            thiago Thiago Macieira
            shausman Simon Hausmann
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes