diff options
author | Marc Chevrier <marc.chevrier@gmail.com> | 2018-10-11 10:20:29 (GMT) |
---|---|---|
committer | Marc Chevrier <marc.chevrier@gmail.com> | 2018-11-08 13:58:57 (GMT) |
commit | 724a0346f7bd424ce0e5db246cee46db9f377a6f (patch) | |
tree | b7562beb8a0122e1918fcdc4902e0b3872987266 /Modules/Compiler/SunPro-Fortran.cmake | |
parent | 023188ffb48cc35ebab7cabbafefcd6dd31b750d (diff) | |
download | CMake-724a0346f7bd424ce0e5db246cee46db9f377a6f.zip CMake-724a0346f7bd424ce0e5db246cee46db9f377a6f.tar.gz CMake-724a0346f7bd424ce0e5db246cee46db9f377a6f.tar.bz2 |
POSITION_INDEPENDENT_CODE: Fix erroneous '-fPIE' flag for Sun Studio
Fixes: #16311
Diffstat (limited to 'Modules/Compiler/SunPro-Fortran.cmake')
-rw-r--r-- | Modules/Compiler/SunPro-Fortran.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/Compiler/SunPro-Fortran.cmake b/Modules/Compiler/SunPro-Fortran.cmake index 2247dd0..d3a415f 100644 --- a/Modules/Compiler/SunPro-Fortran.cmake +++ b/Modules/Compiler/SunPro-Fortran.cmake @@ -3,6 +3,7 @@ set(CMAKE_Fortran_FORMAT_FIXED_FLAG "-fixed") set(CMAKE_Fortran_FORMAT_FREE_FLAG "-free") set(CMAKE_Fortran_COMPILE_OPTIONS_PIC "-KPIC") +set(CMAKE_Fortran_COMPILE_OPTIONS_PIE "") set(CMAKE_SHARED_LIBRARY_Fortran_FLAGS "-KPIC") set(CMAKE_SHARED_LIBRARY_CREATE_Fortran_FLAGS "-G") set(CMAKE_SHARED_LIBRARY_RUNTIME_Fortran_FLAG "-R") |