Merge pull request #104 from miroi/patch-4

math_libs.cmake: remove "-lc" linking flag, not necessary
This commit is contained in:
Radovan Bast 2015-09-03 08:43:54 +02:00
commit c41c10bf9c

View File

@ -509,8 +509,7 @@ if (ENABLE_STATIC_LINKING)
endif() endif()
if (LAPACK_TYPE MATCHES MKL OR if (LAPACK_TYPE MATCHES MKL OR
BLAS_TYPE MATCHES MKL) BLAS_TYPE MATCHES MKL)
# fix for MKL static linking (-lc not needed for PGI) # fix for MKL static linking
# radovan: why is -lc added also for PGI? when exactly is it needed? set(MATH_LIBS ${MATH_LIBS} -ldl)
set(MATH_LIBS ${MATH_LIBS} -ldl -lc)
endif() endif()
endif() endif()