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

-mno-direct-extern-access should be added to CFLAGS in pkgconfig files when needed

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.6
    • Build System
    • None
    • Linux/X11

    Description

      When Qt is compiled with FEATURE_no_direct_extern_access=ON, the appropriate -mno-direct-extern-access build flags are added to the cmake [1] and qmake [2] build configurations, but not to the pkgconfig files. This causes link failures in projects that use pkgconfig to configure Qt build flags, such as gpgme [3]

      [1] https://code.qt.io/cgit/qt/qtbase.git/tree/cmake/QtPlatformTargetHelpers.cmake?h=6.6.0#n48

      [2] https://code.qt.io/cgit/qt/qtbase.git/tree/mkspecs/features/unix/no_direct_extern_access.prf?h=6.6.0#n5

      [3] https://dev.gnupg.org/T6696

      Attachments

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

        Activity

          People

            qtbuildsystem Qt Build System Team
            arojas Antonio Rojas
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes