From c4dcaaf0f85d9963bfd73db30eb5f94fd031d70a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Ilia=C5=A1?= Date: Mon, 16 May 2016 20:44:45 +0200 Subject: [PATCH] Add "-ldl" for static linking Hi Rado, to fix dirac.x static linking ( OpenMPI+GNU+OPENBLAS ) I had to inser -ldl after -lpthread command. Please proprage it into DIRAC repo. Thanks. --- modules/math_libs.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/math_libs.cmake b/modules/math_libs.cmake index e3d3bf2..b3a21b0 100644 --- a/modules/math_libs.cmake +++ b/modules/math_libs.cmake @@ -506,7 +506,7 @@ if (ENABLE_STATIC_LINKING) BLAS_TYPE MATCHES SYSTEM_NATIVE OR BLAS_TYPE MATCHES OPENBLAS) #cc_blas_static with ATLAS on travis-ci needs -lm - set(MATH_LIBS ${MATH_LIBS} -Wl,--whole-archive -lpthread -Wl,--no-whole-archive -lm) + set(MATH_LIBS ${MATH_LIBS} -Wl,--whole-archive -lpthread -ldl -Wl,--no-whole-archive -lm) endif() if (LAPACK_TYPE MATCHES MKL OR BLAS_TYPE MATCHES MKL)