public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* libbacktrace / mingw-w64 / fPIC ignored for target (all code is position independent)
@ 2013-01-10 14:37 Christer Solskogen
  2013-01-10 16:58 ` NightStrike
  0 siblings, 1 reply; 2+ messages in thread
From: Christer Solskogen @ 2013-01-10 14:37 UTC (permalink / raw)
  To: gcc-help

I get this when I'm building a cross compiler for mingw-w64
with gcc-trunk now:
libbacktrace/unknown.c:1:0: error: -fPIC ignored for target 
(all code is position 
independent) [-Werror]

using --disable-werror does not fix it. 
The workaround I found was to remove -fPIC from PIC_FLAG in 
$builddir/x86_64-w64-mingw32/libbacktrace/Makefile.




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: libbacktrace / mingw-w64 / fPIC ignored for target (all code is position independent)
  2013-01-10 14:37 libbacktrace / mingw-w64 / fPIC ignored for target (all code is position independent) Christer Solskogen
@ 2013-01-10 16:58 ` NightStrike
  0 siblings, 0 replies; 2+ messages in thread
From: NightStrike @ 2013-01-10 16:58 UTC (permalink / raw)
  To: Christer Solskogen; +Cc: gcc-help

On Thu, Jan 10, 2013 at 9:30 AM, Christer Solskogen
<christer.solskogen@gmail.com> wrote:
> I get this when I'm building a cross compiler for mingw-w64
> with gcc-trunk now:
> libbacktrace/unknown.c:1:0: error: -fPIC ignored for target
> (all code is position
> independent) [-Werror]
>
> using --disable-werror does not fix it.
> The workaround I found was to remove -fPIC from PIC_FLAG in
> $builddir/x86_64-w64-mingw32/libbacktrace/Makefile.

Removing -fPIC is less of a workaround and more of the Right Way to
solve the problem.  The flag is inappropriate for the mingw-w64
target.  I'm sure if you submit your Makefile change to the
libbacktrace project, they'll accept it.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-01-10 14:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-10 14:37 libbacktrace / mingw-w64 / fPIC ignored for target (all code is position independent) Christer Solskogen
2013-01-10 16:58 ` NightStrike

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).