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

Static build fails when libdir is set to any of the QMAKE_DEFAULT_LIBDIRS

    XMLWordPrintable

Details

    • d5071a4016ec663f8ec7c89ec7ebabea54b3260f (qt/qtbase/5.12)

    Description

      Static build fails if Qt is configured so that -libdir is one of the QMAKE_DEFAULT_LIBDIRS

      e.g., ./configure -prefix /usr -static

       

      | linking ../../bin/qmlpreview
      | aarch64-poky-linux-g++: error: /libqtpcre2.a: No such file or directory
      | Makefile:80: recipe for target '../../bin/qmlpreview' failed
      

      Caused by bad replacement in the prl files during installation.

      libQt5Core.prl:

      QMAKE_PRL_LIBS = -lpthread -lm /usr/lib/x86_64-linux-gnu/libz.so /home/sapiippo/development/build/static/lib/libqtpcre2.a /usr/lib/x86_64-linux-gnu/libdl.so /usr/lib/x86_64-linux-gnu/libgthread-2.0.so /usr/lib/x86_64-linux-gnu/libglib-2.0.so
      ->
      QMAKE_PRL_LIBS = -lpthread -lm /usr/lib/x86_64-linux-gnu/libz.so /libqtpcre2.a /usr/lib/x86_64-linux-gnu/libdl.so /usr/lib/x86_64-linux-gnu/libgthread-2.0.so /usr/lib/x86_64-linux-gnu/libglib-2.0.so  

       likely side effect of commit 521a85395 

       

      Attachments

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

        Activity

          People

            jbornema Joerg Bornemann
            sapiippo Samuli Piippo
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes