diff --git a/gdb/testsuite/lib/future.exp b/gdb/testsuite/lib/future.exp --- a/gdb/testsuite/lib/future.exp +++ b/gdb/testsuite/lib/future.exp @@ -195,6 +195,10 @@ proc gdb_default_target_compile {source destfile type options} { set ldflags "" set dest [target_info name] + if {[board_info $dest exists multilib_flags]} { + append add_flags " [board_info $dest multilib_flags]" + } + if {[info exists CFLAGS_FOR_TARGET]} { append add_flags " $CFLAGS_FOR_TARGET" } @@ -529,10 +533,6 @@ proc gdb_default_target_compile {source destfile type options} { } } - if {[board_info $dest exists multilib_flags]} { - append add_flags " [board_info $dest multilib_flags]" - } - verbose "doing compile" set sources ""