aboutsummaryrefslogtreecommitdiff
path: root/libctf
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2021-01-11 16:29:31 -0800
committerH.J. Lu <hjl.tools@gmail.com>2021-01-11 16:29:45 -0800
commit83b33c6cb90db6c110bff0d5024713e8af747005 (patch)
tree6d5806bacd136c972b3d7ce5368c8b87c310a197 /libctf
parent03c02f3116d75721f917c4155cefb18b940a43ff (diff)
downloadgdb-83b33c6cb90db6c110bff0d5024713e8af747005.zip
gdb-83b33c6cb90db6c110bff0d5024713e8af747005.tar.gz
gdb-83b33c6cb90db6c110bff0d5024713e8af747005.tar.bz2
Binutils: Check if AR works with --plugin and rc
Check if AR works with --plugin and rc before passing --plugin to AR and RANLIB. bfd/ PR ld/27173 binutils/ PR ld/27173 * configure: Regenerated. gas/ PR ld/27173 * configure: Regenerated. gprof/ PR ld/27173 * configure: Regenerated. ld/ PR ld/27173 * configure: Regenerated. libctf/ PR ld/27173 * configure: Regenerated. opcodes/ PR ld/27173 * configure: Regenerated.
Diffstat (limited to 'libctf')
-rw-r--r--libctf/ChangeLog5
-rwxr-xr-xlibctf/configure14
2 files changed, 16 insertions, 3 deletions
diff --git a/libctf/ChangeLog b/libctf/ChangeLog
index 4970cab..9cc02d3 100644
--- a/libctf/ChangeLog
+++ b/libctf/ChangeLog
@@ -1,3 +1,8 @@
+2021-01-11 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR ld/27173
+ * configure: Regenerated.
+
2021-01-09 H.J. Lu <hongjiu.lu@intel.com>
* configure: Regenerated.
diff --git a/libctf/configure b/libctf/configure
index 3d2f225..5e44eda 100755
--- a/libctf/configure
+++ b/libctf/configure
@@ -6720,7 +6720,15 @@ fi
test -z "$AR" && AR=ar
if test -n "$plugin_option"; then
if $AR --help 2>&1 | grep -q "\--plugin"; then
- AR="$AR $plugin_option"
+ touch conftest.c
+ $AR $plugin_option rc conftest.a conftest.c
+ if test "$?" != 0; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
+$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
+ else
+ AR="$AR $plugin_option"
+ fi
+ rm -f conftest.*
fi
fi
test -z "$AR_FLAGS" && AR_FLAGS=cru
@@ -11531,7 +11539,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 11534 "configure"
+#line 11542 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -11637,7 +11645,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 11640 "configure"
+#line 11648 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H