I have encountered an issue related to honoring PKG_CHECK_MODULES related C/LDFLAGS. For example writing down `PKG_CHECK_MODULES([CORE],[fontconfig x11 xext])' won't generate CORE_C/LDFLAGS accordingly. See bug #528254 which should be marked as a duplicate of this one instead. I've encountered this bug on other packages but I was too busy to debug it. This actually goes down to a broken `configure' script which have: --- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CORE" >&5 $as_echo_n "checking for CORE... " >&6; } if test -n "$CORE_CFLAGS"; then (...) if test -n "$CORE_LIBS"; then (...) fi --- instead of --- (...) if test -z "$CORE_CFLAGS"; then (...) if test -z "$CORE_LIBS"; then (...) fi --- which would honor C/LDFLAGS by executing the related lines. Lets locate the origin of those lines to be able to fix the issue. Reproducible: Always
So this is related to the underlinking issue (see bug #372079).
*** This bug has been marked as a duplicate of bug 528254 ***