diff --git a/gcc/testsuite/lib/gcc.exp b/gcc/testsuite/lib/gcc.exp index dda4d0e6366..4d80606d386 100644 --- a/gcc/testsuite/lib/gcc.exp +++ b/gcc/testsuite/lib/gcc.exp @@ -134,6 +134,9 @@ proc gcc_target_compile { source dest type options } { [info exists gluefile] } { lappend options "libs=${gluefile}" lappend options "ldflags=$wrap_flags" + if { $type == "executable" } { + set options [concat "{additional_flags=-dumpbase \"\"}" $options] + } } global TEST_EXTRA_LIBS