* 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 68106c4..4003556 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 3c1eb87..10f7728 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"
             }
         }