Skip to content

Commit

Permalink
Merge pull request #171 from miroi/patch-1
Browse files Browse the repository at this point in the history
Add "-ldl" for static linking
  • Loading branch information
bast committed May 17, 2016
2 parents a772d29 + c4dcaaf commit b7c2e49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/math_libs.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b7c2e49

Please sign in to comment.