This is the mail archive of the mailing list for the GDB project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[RFA] testsuite: Avoid auto-import warning on cygwin/mingw

Several tests fail on cygwin
because of:
gdb compile failed,
/bin/ld: warning: auto-importing has been activated without
 specified on the command line.
This should work unless it involves constant data structures referencing
 from auto-imported DLLs.Info: resolving _sg by linking to __imp__sg
UNTESTED: gdb.base/shlib-call.exp: Could not compile
estsuite/gdb.base/, or ../../../src/gdb/testsuite/gdb.base/shmain.c.

Adding --enable-auto-import to link stage
fixes this problem.

Is this OK?

Pierre Muller
Pascal language support maintainer for GDB

2009-10-02  Pierre Muller  <>

	* lib/gdb.exp (gdb_compile): Add --enable-auto-import option for
	mingw and cygwin targets.

Index: lib/gdb.exp
RCS file: /cvs/src/src/gdb/testsuite/lib/gdb.exp,v
retrieving revision 1.119
diff -u -p -r1.119 gdb.exp
--- lib/gdb.exp	13 Jul 2009 19:24:18 -0000	1.119
+++ lib/gdb.exp	1 Oct 2009 22:03:25 -0000
@@ -1731,7 +1731,10 @@ proc gdb_compile {source dest type optio
                     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
+		} 
 	} elseif { $opt == "shlib_load" } {
 	    if { ([istarget "*-*-mingw*"]

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]