Skip to content

Commit

Permalink
Skip linking -lm for the detected lapack (#8089)
Browse files Browse the repository at this point in the history
Trying to statically link `-lm` might fail on some systems.
  • Loading branch information
sjoelund committed Nov 4, 2021
1 parent 73daa34 commit 5918a1c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions OMCompiler/m4/lapack.m4
Expand Up @@ -103,6 +103,7 @@ AC_DEFUN([OMC_AC_LAPACK], [
fi
if test ! -z "$LD_LAPACK"; then
LD_LAPACK=`echo $LD_LAPACK | sed -e 's/-lm$//' -e 's/-lm *//'`
HAVE_LAPACK="#define HAVE_LAPACK"
# lapack 3.6.0 deprecated dgegv, dgelsx, dgeqpf
Expand Down

0 comments on commit 5918a1c

Please sign in to comment.