Skip to content

add missing -lm to suitesparse link line

James Willenbring requested to merge nschloe:suitesparse-link-error into develop

Created by: nschloe

Fixes link errors like

/trilinos_trilinosss.dir/AMD/Source/trilinos_amd_2.c.o: In function `trilinos_amd_2':
/<<PKGBUILDDIR>>/packages/common/auxiliarySoftware/SuiteSparse/src/AMD/Source/trilinos_amd_2.c:603: undefined reference to `sqrt'

(See here for full details.) Errors of this kind happen once in a while and are easily detected by adding -Wl,--no-undefined to the link commands, e.g., by adding

  -DCMAKE_SHARED_LINKER_FLAGS:STRING="-Wl,--no-undefined"

to the configure line. @jwillenbring Could this be done for the nightly testing?

Merge request reports