* lib/gdb.exp: Don't pass -fpic to gcc on Cygwin, MinGW

and generic PE targets.
This commit is contained in:
Daniel Jacobowitz 2006-12-30 20:32:47 +00:00
parent 87a918e202
commit 227c54da38
2 changed files with 9 additions and 1 deletions

View 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.

View 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"
}
}