From e04c2a82f21b45d4077c3f1bdbf6d71c9a3c83cf Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Fri, 16 May 2025 09:36:33 +0930 Subject: [PATCH] ld testsuite fail with --disable-plugins * testsuite/config/default.exp (dep_plug_opt): Don't set unless check_plugin_api_available returns true. --- ld/testsuite/config/default.exp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/ld/testsuite/config/default.exp b/ld/testsuite/config/default.exp index 66721ff618e..1d696811e8e 100644 --- a/ld/testsuite/config/default.exp +++ b/ld/testsuite/config/default.exp @@ -538,10 +538,11 @@ if { [check_compiler_available] } { } } -if {[file exists .libs/libdep.so]} { - set dep_plug_opt "--plugin .libs/libdep.so" -} elseif {[file exists .libs/libdep.dll]} { - set dep_plug_opt "--plugin .libs/libdep.dll" -} else { - set dep_plug_opt "" +set dep_plug_opt "" +if [check_plugin_api_available] { + if {[file exists .libs/libdep.so]} { + set dep_plug_opt "--plugin .libs/libdep.so" + } elseif {[file exists .libs/libdep.dll]} { + set dep_plug_opt "--plugin .libs/libdep.dll" + } } -- 2.47.2