diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2020-07-28 03:50:10 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2020-07-28 03:56:34 -0700 |
commit | d70f978b44aafc22d87c0e72d0875008c3d9e311 (patch) | |
tree | d53f7d66d27b619f747638e4088006abdc923197 /binutils/configure | |
parent | 1a02d6b0ff80048df106cbb776a550278f8c9d9c (diff) | |
download | gdb-d70f978b44aafc22d87c0e72d0875008c3d9e311.zip gdb-d70f978b44aafc22d87c0e72d0875008c3d9e311.tar.gz gdb-d70f978b44aafc22d87c0e72d0875008c3d9e311.tar.bz2 |
PKG_CHECK_MODULES: Check if $pkg_cv_[]$1[]_LIBS works
It is quite normal to have headers without library on multilib OSes.
Add AC_TRY_LINK to PKG_CHECK_MODULES to check if $pkg_cv_[]$1[]_LIBS
works.
config/
PR binutils/26301
* pkg.m4 (PKG_CHECK_MODULES): Add AC_TRY_LINK to check if
$pkg_cv_[]$1[]_LIBS works.
binutils/
PR binutils/26301
* configure: Regenerated.
gdb/
PR binutils/26301
* configure: Regenerated.
Diffstat (limited to 'binutils/configure')
-rwxr-xr-x | binutils/configure | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/binutils/configure b/binutils/configure index c9fc510..4620a6b 100755 --- a/binutils/configure +++ b/binutils/configure @@ -12439,6 +12439,28 @@ fi pkg_failed=untried fi +pkg_save_LDFLAGS="$LDFLAGS" +LDFLAGS="$LDFLAGS $pkg_cv_DEBUGINFOD_LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +return 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + pkg_failed=no +else + pkg_failed=yes +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LDFLAGS=$pkg_save_LDFLAGS + if test $pkg_failed = yes; then |