This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Tighten test for ld plugin support
- From: Alan Modra <amodra at gmail dot com>
- To: binutils at sourceware dot org
- Date: Tue, 12 Aug 2014 22:38:03 +0930
- Subject: Tighten test for ld plugin support
- Authentication-results: sourceware.org; auth=none
To not match spu --plugin option.
* lib/ld-lib.exp (check_plugin_api_available): Match "-plugin PLUGIN".
diff --git a/ld/testsuite/lib/ld-lib.exp b/ld/testsuite/lib/ld-lib.exp
index c4ce0e7..e4084e1 100644
--- a/ld/testsuite/lib/ld-lib.exp
+++ b/ld/testsuite/lib/ld-lib.exp
@@ -1660,7 +1660,7 @@ proc check_plugin_api_available { } {
if {![info exists plugin_api_available_saved]} {
# Check if the ld used by gcc supports --plugin.
set ld_output [remote_exec host $ld "--help"]
- if { [ string first "-plugin" $ld_output ] >= 0 } {
+ if { [ string first "-plugin PLUGIN" $ld_output ] >= 0 } {
set plugin_api_available_saved 1
} else {
set plugin_api_available_saved 0
--
Alan Modra
Australia Development Lab, IBM