This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH, PE] Don't pass -fpic to gcc.
- From: Daniel Jacobowitz <drow at false dot org>
- To: Pedro Alves <pedro_alves at portugalmail dot pt>
- Cc: GDB Patches <gdb-patches at sourceware dot org>
- Date: Sat, 30 Dec 2006 15:33:16 -0500
- Subject: Re: [PATCH, PE] Don't pass -fpic to gcc.
- References: <458B061C.8090208@portugalmail.pt>
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