Skip to content

Commit e04c2a8

Browse files
committed
ld testsuite fail with --disable-plugins
* testsuite/config/default.exp (dep_plug_opt): Don't set unless check_plugin_api_available returns true.
1 parent 0445100 commit e04c2a8

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

ld/testsuite/config/default.exp

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -538,10 +538,11 @@ if { [check_compiler_available] } {
538538
}
539539
}
540540

541-
if {[file exists .libs/libdep.so]} {
542-
set dep_plug_opt "--plugin .libs/libdep.so"
543-
} elseif {[file exists .libs/libdep.dll]} {
544-
set dep_plug_opt "--plugin .libs/libdep.dll"
545-
} else {
546-
set dep_plug_opt ""
541+
set dep_plug_opt ""
542+
if [check_plugin_api_available] {
543+
if {[file exists .libs/libdep.so]} {
544+
set dep_plug_opt "--plugin .libs/libdep.so"
545+
} elseif {[file exists .libs/libdep.dll]} {
546+
set dep_plug_opt "--plugin .libs/libdep.dll"
547+
}
547548
}

0 commit comments

Comments
 (0)