* lib/gdb.exp: Don't pass -fpic to gcc on Cygwin, MinGW
authorDaniel Jacobowitz <drow@false.org>
Sat, 30 Dec 2006 20:32:47 +0000 (20:32 +0000)
committerDaniel Jacobowitz <drow@false.org>
Sat, 30 Dec 2006 20:32:47 +0000 (20:32 +0000)
and generic PE targets.

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

index 68106c4fa46bbddf51e7bce8bd43fa1c0e7db5e6..4003556f9a259d063937ecc945aae2bacf12a722 100644 (file)
@@ -1,3 +1,8 @@
+2006-12-30  Pedro Alves  <pedro_alves@portugalmail.pt>
+
+       * lib/gdb.exp: Don't pass -fpic to gcc on Cygwin, MinGW
+       and generic PE targets.
+
 2006-12-29  Joel Brobecker  <brobecker@adacore.com>
 
        * gdb.ada/array_return.exp: Update copyright date list.
index 3c1eb87774741bb84528e351f23f4a26996d4fb3..10f77284f915c9f8613c4b5d07707813e73a16d3 100644 (file)
@@ -1575,7 +1575,10 @@ proc gdb_compile_shlib {sources dest options} {
         }
         "gcc-*" {
             if { !([istarget "powerpc*-*-aix*"]
-                   || [istarget "rs6000*-*-aix*"]) } {
+                   || [istarget "rs6000*-*-aix*"]
+                   || [istarget "*-*-cygwin*"]
+                   || [istarget "*-*-mingw*"]
+                   || [istarget "*-*-pe*"]) } {
                 lappend obj_options "additional_flags=-fpic"
             }
         }