[PATCH, PE] Don't pass -fpic to gcc.

Pedro Alves pedro_alves@portugalmail.pt
Thu Dec 21 22:10:00 GMT 2006


Hi all,

PE targets ignore -fpic, since they are always pic.  This patch makes 
gdb_compile_shlib not add
-fpic to PE targets.  There are a few fails in cygwin caused by the 
warning cygwin gcc emits when
-fpic is passed.
"warning: -fpic ignored for target (all code is position independent)"

Please review and commit.

Cheers,
Pedro Alves

gdb/testsuite/

2006-12-21  Pedro Alves  <pedro_alves@portugalmail.pt>

       * gdb.base/lib/gdb.exp: Don't pass -fpic to gcc on Cygwin, MinGW
       and generic PE targets.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: gdb.exp.diff
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20061221/d6c1cb08/attachment.ksh>


More information about the Gdb-patches mailing list