aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2020-07-28 06:59:20 -0700
committerH.J. Lu <hjl.tools@gmail.com>2020-07-28 06:59:30 -0700
commit377170fa319d39d5442b674fc978adc8f24db5e9 (patch)
treee89927bdb3250038a3eb7abce9d586e57acfba92 /binutils
parent866b34a12df543caae10dd5a8de988e40ee012cd (diff)
downloadgdb-377170fa319d39d5442b674fc978adc8f24db5e9.zip
gdb-377170fa319d39d5442b674fc978adc8f24db5e9.tar.gz
gdb-377170fa319d39d5442b674fc978adc8f24db5e9.tar.bz2
PKG_CHECK_MODULES: Properly check if $pkg_cv_[]$1[]_LIBS works
There is no need to check $pkg_cv_[]$1[]_LIBS works if package check failed. config/ PR binutils/26301 * pkg.m4 (PKG_CHECK_MODULES): Use AC_TRY_LINK only if $pkg_failed = no. binutils/ PR binutils/26301 * configure: Regenerated. gdb/ PR binutils/26301 * configure: Regenerated.
Diffstat (limited to 'binutils')
-rw-r--r--binutils/ChangeLog5
-rwxr-xr-xbinutils/configure14
2 files changed, 13 insertions, 6 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 2c76b2a..5d32d26 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -3,6 +3,11 @@
PR binutils/26301
* configure: Regenerated.
+2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR binutils/26301
+ * configure: Regenerated.
+
2020-07-27 Alan Modra <amodra@gmail.com>
* objdump.c (dump_section): Don't return without calling
diff --git a/binutils/configure b/binutils/configure
index 4620a6b..18316b7 100755
--- a/binutils/configure
+++ b/binutils/configure
@@ -12439,27 +12439,29 @@ fi
pkg_failed=untried
fi
-pkg_save_LDFLAGS="$LDFLAGS"
-LDFLAGS="$LDFLAGS $pkg_cv_DEBUGINFOD_LIBS"
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+if test $pkg_failed = no; then
+ 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
+ LDFLAGS=$pkg_save_LDFLAGS
+fi