Explorar o código

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).
Brad King %!s(int64=16) %!d(string=hai) anos
pai
achega
ccdd3e943d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Modules/Platform/Linux-Intel-Fortran.cmake

+ 1 - 1
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 ":")