1 --- lapack/CMakeLists.txt
2 +++ lapack_fix/CMakeLists.txt
4 # Delete libmtsk in linking sequence for Sun/Oracle Fortran Compiler.
5 # This library is not present in the Sun package SolarisStudio12.3-linux-x86-bin
6 string(REPLACE \;mtsk\; \; CMAKE_Fortran_IMPLICIT_LINK_LIBRARIES "${CMAKE_Fortran_IMPLICIT_LINK_LIBRARIES}")
8 + if("${CMAKE_Fortran_COMPILER}" MATCHES "gfortran")
9 + set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -Wl,--allow-multiple-definition")
13 if(CMAKE_Fortran_COMPILER_ID STREQUAL "Compaq")