diff options
author | Brad King <brad.king@kitware.com> | 2009-10-27 14:50:43 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2009-10-27 14:50:43 (GMT) |
commit | ccdd3e943de6e7bc2202f3f82c64fe2938f52988 (patch) | |
tree | d1f8e9581c13e2c189fceff20e2c4c9cafaa8cc8 /Modules | |
parent | e2b63e473df4d765b737dad35aba90d5f9dd1085 (diff) | |
download | CMake-ccdd3e943de6e7bc2202f3f82c64fe2938f52988.zip CMake-ccdd3e943de6e7bc2202f3f82c64fe2938f52988.tar.gz CMake-ccdd3e943de6e7bc2202f3f82c64fe2938f52988.tar.bz2 |
Fix Intel Fortran SHARED libraries on Linux
The Intel Fortran compiler needs options '-i_dynamic' and '-nofor_main'
to create shared libraries on Linux (for at least one architecture).
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/Platform/Linux-Intel-Fortran.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/Platform/Linux-Intel-Fortran.cmake b/Modules/Platform/Linux-Intel-Fortran.cmake index 27a98ed..da3b935 100644 --- a/Modules/Platform/Linux-Intel-Fortran.cmake +++ b/Modules/Platform/Linux-Intel-Fortran.cmake @@ -8,7 +8,7 @@ IF(XIAR) ENDIF(XIAR) SET(CMAKE_SHARED_LIBRARY_Fortran_FLAGS "-fPIC") -SET(CMAKE_SHARED_LIBRARY_CREATE_Fortran_FLAGS "-shared") +SET(CMAKE_SHARED_LIBRARY_CREATE_Fortran_FLAGS "-shared -i_dynamic -nofor_main") SET(CMAKE_SHARED_LIBRARY_LINK_Fortran_FLAGS "-i_dynamic") SET(CMAKE_SHARED_LIBRARY_RUNTIME_Fortran_FLAG "-Wl,-rpath,") SET(CMAKE_SHARED_LIBRARY_RUNTIME_Fortran_FLAG_SEP ":") |