CMake/Modules/Compiler
Stephen Kelly 31d7a0f2e3 Add platform variables for position independent code flags
Store in new platform variables

  CMAKE_${lang}_COMPILE_OPTIONS_PIC
  CMAKE_${lang}_COMPILE_OPTIONS_PIE

flags for position independent code generation.

In almost all cases, this means duplication of the
CMAKE_SHARED_LIBRARY_${lang}_FLAGS for the _PIC case and using the
assumed pie equivalent for the _PIE case.  Note that the GNU compiler
has supported -fPIE since 3.4 and that there is no -fPIC on GNU for
Windows or Cygwin.

There is a possibility that the _PIE variables are not correct.
However, as there is no backwards compatibility to be concerned about
(as the POSITION_INDEPENDENT_CODE property is not used anywhere yet),
the current state suffices.
2012-06-12 15:37:53 -04:00
..
Absoft-Fortran.cmake Fortran: Add support for free- and fixed-form flags 2011-08-31 10:24:43 -04:00
Clang-C.cmake Recognize Clang C and C++ compilers (see #10693) 2010-05-17 14:11:20 -04:00
Clang-CXX.cmake Recognize Clang C and C++ compilers (see #10693) 2010-05-17 14:11:20 -04:00
Cray-C.cmake Teach CMake about Cray C, C++, and Fortran compilers 2010-11-12 09:12:08 -05:00
Cray-CXX.cmake Teach CMake about Cray C, C++, and Fortran compilers 2010-11-12 09:12:08 -05:00
Cray-Fortran.cmake Fortran: Add support for free- and fixed-form flags 2011-08-31 10:24:43 -04:00
G95-Fortran.cmake Fortran: Add support for free- and fixed-form flags 2011-08-31 10:24:43 -04:00
GNU-ASM.cmake Change the default rules so they fit better to the new ASM handling 2011-02-23 21:21:41 +01:00
GNU-C.cmake Split GNU compiler information files 2009-12-02 09:52:00 -05:00
GNU-CXX.cmake Split GNU compiler information files 2009-12-02 09:52:00 -05:00
GNU-Fortran.cmake Fortran: Add support for free- and fixed-form flags 2011-08-31 10:24:43 -04:00
GNU.cmake Add platform variables for position independent code flags 2012-06-12 15:37:53 -04:00
HP-ASM.cmake Set the HP asm file suffix 2011-02-23 21:18:55 +01:00
HP-C.cmake Add assemble- and preprocess commands for HP 2011-02-23 21:30:21 +01:00
HP-CXX.cmake Add assemble- and preprocess commands for HP 2011-02-23 21:30:21 +01:00
HP-Fortran.cmake Fortran: Add support for free- and fixed-form flags 2011-08-31 10:24:43 -04:00
Intel-ASM.cmake Add support for the Intel compiler used for ASM under Windows 2011-03-02 16:46:25 +01:00
Intel-C.cmake The preprocessing and assembly rules also need the <DEFINES>, otherwise different reults are created. 2009-09-19 04:33:10 -04:00
Intel-CXX.cmake The preprocessing and assembly rules also need the <DEFINES>, otherwise different reults are created. 2009-09-19 04:33:10 -04:00
Intel-Fortran.cmake Fortran: Add support for free- and fixed-form flags 2011-08-31 10:24:43 -04:00
MIPSpro-C.cmake ENH: Implicit link info for C, CXX, and Fortran 2009-07-23 10:07:25 -04:00
MIPSpro-CXX.cmake ENH: Implicit link info for C, CXX, and Fortran 2009-07-23 10:07:25 -04:00
MIPSpro-Fortran.cmake Fortran: Add support for free- and fixed-form flags 2011-08-31 10:24:43 -04:00
NAG-Fortran.cmake Fortran: Add support for free- and fixed-form flags 2011-08-31 10:24:43 -04:00
PGI-C.cmake Generalize support for Portland Group Compiler 2009-12-04 10:21:57 -05:00
PGI-CXX.cmake Generalize support for Portland Group Compiler 2009-12-04 10:21:57 -05:00
PGI-Fortran.cmake Fortran: Add support for free- and fixed-form flags 2011-08-31 10:24:43 -04:00
PGI.cmake Modules: Fix spelling 'To distributed' -> 'To distribute' 2010-08-09 08:48:31 -04:00
PathScale-C.cmake PathScale C/C++/Fortran Compiler Information 2010-01-13 12:14:31 -05:00
PathScale-CXX.cmake PathScale C/C++/Fortran Compiler Information 2010-01-13 12:14:31 -05:00
PathScale-Fortran.cmake Fortran: Add support for free- and fixed-form flags 2011-08-31 10:24:43 -04:00
PathScale.cmake Modules: Fix spelling 'To distributed' -> 'To distribute' 2010-08-09 08:48:31 -04:00
SCO-C.cmake Factor SCO compiler info out of platform file (#11700) 2011-01-17 09:57:17 -05:00
SCO-CXX.cmake Factor SCO compiler info out of platform file (#11700) 2011-01-17 09:57:17 -05:00
SCO.cmake Add platform variables for position independent code flags 2012-06-12 15:37:53 -04:00
SunPro-ASM.cmake Change the default rules so they fit better to the new ASM handling 2011-02-23 21:21:41 +01:00
SunPro-C.cmake Add platform variables for position independent code flags 2012-06-12 15:37:53 -04:00
SunPro-CXX.cmake Add platform variables for position independent code flags 2012-06-12 15:37:53 -04:00
SunPro-Fortran.cmake Fortran: Add support for free- and fixed-form flags 2011-08-31 10:24:43 -04:00
TinyCC-C.cmake TinyCC: Add default compilation flags (#12605) 2011-12-05 08:59:50 -05:00
VisualAge-C.cmake Teach compiler id about VisualAge -> XL rebranding 2009-08-07 10:13:07 -04:00
VisualAge-CXX.cmake Teach compiler id about VisualAge -> XL rebranding 2009-08-07 10:13:07 -04:00
VisualAge-Fortran.cmake Teach compiler id about VisualAge -> XL rebranding 2009-08-07 10:13:07 -04:00
XL-ASM.cmake Fix the default CMAKE_ASM_COMPILE_OBJECT, make XL-ASM use it 2011-02-23 21:29:05 +01:00
XL-C.cmake XL: Consolidate compiler flag information 2011-04-07 17:09:05 -04:00
XL-CXX.cmake XL: Consolidate compiler flag information 2011-04-07 17:09:05 -04:00
XL-Fortran.cmake Fortran: Add support for free- and fixed-form flags 2011-08-31 10:24:43 -04:00
XL.cmake Support building shared libraries or modules without soname (#13155) 2012-04-30 11:50:27 -04:00