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

-fPIC unknown compiler option is added for msvc

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.6.0 RC
    • 5.5.0
    • Build System: CMake
    • None
    • Windows, Visual Studio 2010
    • 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

            krf Kevin Funk
            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