From 227c54da38fd784b2d6c3c1ee57c77a2cf69618d Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Sat, 30 Dec 2006 20:32:47 +0000 Subject: [PATCH] * lib/gdb.exp: Don't pass -fpic to gcc on Cygwin, MinGW and generic PE targets. --- gdb/testsuite/ChangeLog | 5 +++++ gdb/testsuite/lib/gdb.exp | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 68106c4fa46..4003556f9a2 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2006-12-30 Pedro Alves + + * lib/gdb.exp: Don't pass -fpic to gcc on Cygwin, MinGW + and generic PE targets. + 2006-12-29 Joel Brobecker * gdb.ada/array_return.exp: Update copyright date list. diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp index 3c1eb877747..10f77284f91 100644 --- a/gdb/testsuite/lib/gdb.exp +++ b/gdb/testsuite/lib/gdb.exp @@ -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" } } -- 2.30.2