[cmake-developers] [CMake 0016002]: CMake strips -fPIC from executable compilation which blocks the use of Qt5 and GCC5

Mantis Bug Tracker mantis at public.kitware.com
Wed Mar 2 09:05:00 EST 2016


The following issue has been SUBMITTED. 
====================================================================== 
https://cmake.org/Bug/view.php?id=16002 
====================================================================== 
Reported By:                Jordan
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   16002
Category:                   CMake
Reproducibility:            always
Severity:                   block
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2016-03-02 09:05 EST
Last Modified:              2016-03-02 09:05 EST
====================================================================== 
Summary:                    CMake strips -fPIC from executable compilation which
blocks the use of Qt5 and GCC5
Description: 
I understand this case https://cmake.org/Bug/view.php?id=9659.
However, Qt5 and GCC 5 are now forcing fPIC on all compilation.
I have brought this to QT's attention with
https://bugreports.qt.io/browse/QTBUG-51593, but they say the policy will not
change.
As far as I can tell there is no way to apply fPIC to the executable.
It appears to be stripped from the CMAKE_CXX_FLAGS.
This blocks the use of Qt5 and GCC5.

Steps to Reproduce: 
Take prebuild Qt-5.4.1 or new.
Use GCC-5 or newer.

====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2016-03-02 09:05 Jordan         New Issue                                    
======================================================================



More information about the cmake-developers mailing list