summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorSteven Vancoillie <steven.vancoillie@runbox.com>2015-03-20 08:13:00 (GMT)
committerBrad King <brad.king@kitware.com>2015-03-20 17:05:05 (GMT)
commit3556fb1b81fccac63600a2509f92e9ef738fed69 (patch)
tree48b25853d29ffced9bbcfd2fd72b2576056dfa70 /Modules
parentc95e523db87cd503c97ca2a6021614393bb33e0b (diff)
downloadCMake-3556fb1b81fccac63600a2509f92e9ef738fed69.zip
CMake-3556fb1b81fccac63600a2509f92e9ef738fed69.tar.gz
CMake-3556fb1b81fccac63600a2509f92e9ef738fed69.tar.bz2
SunPro: Add position independent code flag for Fortran compiler
Diffstat (limited to 'Modules')
-rw-r--r--Modules/Compiler/SunPro-Fortran.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/Compiler/SunPro-Fortran.cmake b/Modules/Compiler/SunPro-Fortran.cmake
index e4db1e8..196aae4 100644
--- a/Modules/Compiler/SunPro-Fortran.cmake
+++ b/Modules/Compiler/SunPro-Fortran.cmake
@@ -2,6 +2,7 @@ set(CMAKE_Fortran_VERBOSE_FLAG "-v")
set(CMAKE_Fortran_FORMAT_FIXED_FLAG "-fixed")
set(CMAKE_Fortran_FORMAT_FREE_FLAG "-free")
+set(CMAKE_Fortran_COMPILE_OPTIONS_PIC "-KPIC")
set(CMAKE_SHARED_LIBRARY_Fortran_FLAGS "-KPIC")
set(CMAKE_SHARED_LIBRARY_CREATE_Fortran_FLAGS "-G")
set(CMAKE_SHARED_LIBRARY_RUNTIME_Fortran_FLAG "-R")