* lib/gdb.exp (gdb_compile): Add --enable-auto-import option for
authorPierre Muller <muller@sourceware.org>
Fri, 2 Oct 2009 22:25:26 +0000 (22:25 +0000)
committerPierre Muller <muller@sourceware.org>
Fri, 2 Oct 2009 22:25:26 +0000 (22:25 +0000)
mingw and cygwin targets.

gdb/testsuite/ChangeLog
gdb/testsuite/lib/gdb.exp

index 957cf90dfb8c2a7fd4e560ae43f7daef2267c8c5..9fc5e0fe3e8dc29e7f2e75178bb71d0c789bc673 100644 (file)
@@ -1,3 +1,8 @@
+2009-10-02  Pierre Muller  <muller@ics.u-strasbg.fr>
+
+       * lib/gdb.exp (gdb_compile): Add --enable-auto-import option for 
+       mingw and cygwin targets.
+
 2009-10-02  Pierre Muller  <muller@ics.u-strasbg.fr>
            Pedro Alves  <pedro@codesourcery.com>
 
index af69c68aa3a4981ea4fb29354902b2d8252a70b3..c91151701b3969231b1848c4514e07298f9c7ee4 100644 (file)
@@ -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*"]