CCTK_CHECK_HEADER_LIB_FUNC adds library multiple times to $LIBS

Issue #1334 new
Frank Löffler created an issue

CCTK_CHECK_HEADER_LIB_FUNC (in aclocal.m4) adds its second argument to $LIBS, every time it is called. I found 8 invocations in configure.in, each time adding the math library, resulting in a very weird (but not necessarily wrong) link line in Cactus.

I am not entirely sure about what to do here, but my best guess is that $LIBS shouldn't be changed at all after this function was called. An alternative would be to check for the existance of $2 in $LIBS before it is unconditionally added.

Keyword:

Comments (1)

  1. Log in to comment