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

-fPIC unknown compiler option is added for msvc

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.5.0
    • Fix Version/s: 5.6.0 RC
    • Component/s: Build System
    • Labels:
    • Environment:
      Windows, Visual Studio 2010
    • Commits:
      9871c3d8bd71ab265d7394495a3a9f0c2963f6ab

      Description

      After I compiled qt_everywhere 5.5.0 with msvc10, the generated qtbase\lib\cmake\Qt5Core\Qt5CoreConfigExtras.cmake file contains

      set(Qt5Core_EXECUTABLE_COMPILE_FLAGS "-fPIC")

      This option is not supported by Visual Studio (it's a gcc option)

      I'm getting lots of warnings in Visual upon compilation reporting this option is unknown. I should be removed (or conditioned by a if(MSVC))

      Note: Qt 5.5 installed by qt-unified-windows-x86-2.0.2-2-online.exe has the same issue (compared to Qt 5.2.1, -fPIC has been added)

        Attachments

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

          Activity

            People

            • Assignee:
              krf Kevin Funk
              Reporter:
              jpo38 Jean Porcherot
            • Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes