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

Support the choice of linking against a static/shared build of Qt installed into the same directory.

    XMLWordPrintable

Details

    Description

      If possible allow have the build system choose between the static or shared library version of Qt in the same directory. Currently the safest approach is to have different builds of Qt in different directories. This method assumes that the builds have the same qconfig.h and only differ in that one is static and one is a dynamic build.

      A suggestion on how that might be done is to support a staticlink.prf which is used by adding "staticlink" to the CONFIG variable in a .pro file. An example of such a .prf for Qt "console" applications for unix is :
      unix

      { LIBS -= -lQtCore LIBS += -Wl,-Bstatic -lQtCore -Wl,-Bdynamic }

      Attachments

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

        Activity

          People

            stormols Marius Storm-Olsen
            isdale Keith Isdale (closed Nokia identity) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes