From: Pierre Muller Date: Fri, 2 Oct 2009 22:25:26 +0000 (+0000) Subject: * lib/gdb.exp (gdb_compile): Add --enable-auto-import option for X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bb61102ddc1267c87fd54febdd8c288e4de8fff5;p=binutils-gdb.git * lib/gdb.exp (gdb_compile): Add --enable-auto-import option for mingw and cygwin targets. --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 957cf90dfb8..9fc5e0fe3e8 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2009-10-02 Pierre Muller + + * lib/gdb.exp (gdb_compile): Add --enable-auto-import option for + mingw and cygwin targets. + 2009-10-02 Pierre Muller Pedro Alves diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp index af69c68aa3a..c91151701b3 100644 --- a/gdb/testsuite/lib/gdb.exp +++ b/gdb/testsuite/lib/gdb.exp @@ -1731,7 +1731,10 @@ proc gdb_compile {source dest type options} { lappend options "additional_flags=-L${outdir}" } elseif { [istarget "mips-sgi-irix*"] } { lappend options "additional_flags=-rpath ${outdir}" - } + } elseif { ([istarget "*-*-mingw*"] + || [istarget *-*-cygwin*]) } { + lappend new_options "additional_flags=-Wl,--enable-auto-import" + } } } elseif { $opt == "shlib_load" } { if { ([istarget "*-*-mingw*"]