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

qglobal force of fPIC with gcc > 5 breaks cmake build

XMLWordPrintable

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

      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".

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes