PKG_CHECK_MODULES: Check if $pkg_cv_[]$1[]_LIBS works
H.J. Lu
hjl.tools@gmail.com
Tue Jul 28 14:09:27 GMT 2020
On Tue, Jul 28, 2020 at 7:02 AM Alan Modra <amodra@gmail.com> wrote:
>
> And this fixes the failure, but it's not very elegant, so I'm not
> going to commit it. You really should only be doing the extra
> AC_TRY_LINK if debuginfod.so was added to libs.
That is what my patch does:
dnl Check whether $pkg_cv_[]$1[]_LIBS works.
if test $pkg_failed = no; then
pkg_save_LDFLAGS="$LDFLAGS"
LDFLAGS="$LDFLAGS $pkg_cv_[]$1[]_LIBS"
AC_TRY_LINK([],[], [], [pkg_failed=yes])
LDFLAGS=$pkg_save_LDFLAGS
fi
In your case, AC_TRY_LINK isn't used since $pkg_failed = yes.
--
H.J.
More information about the Binutils
mailing list