This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]