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

qglobal force of fPIC with gcc > 5 breaks cmake build

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P2: Important
    • None
    • 5.4.1, 5.5.1
    • Core: Other
    • None
    • RHEL 7
      Ubuntu 15.10

    Description

      qglobal.h forces fPIC with gcc > 5.
      CMake has long removed fPIC from an executable's compilation. Please see https://cmake.org/Bug/view.php?id=9659

      This prevents me from compiling an executable using a cmake configuration with gcc 5+ compilers.

      CMake's ticket indicates and I quote "Linking executables with -fPIC is just wrong and even considered a policy violation on Debian".

      Attachments

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

        Activity

          People

            thiago Thiago Macieira
            lefebvrejp@ornl.gov Jordan Lefebvre
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes