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

Daniel Jacobowitz drow@false.org
Sat Dec 30 20:33:00 GMT 2006


On Thu, Dec 21, 2006 at 10:09:32PM +0000, Pedro Alves wrote:
> 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.

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

Typo (gdb.base).  Otherwise OK; I committed it.

Have I offered you write-after-approval access yet?  If not, I should
have; feel free to fill out the form on the front of sourceware.org,
and list me as approver.

-- 
Daniel Jacobowitz
CodeSourcery



More information about the Gdb-patches mailing list