Re: libbacktrace / mingw-w64 / fPIC ignored for target (all code is position independent)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jan 10, 2013 at 9:30 AM, Christer Solskogen
<christer.solskogen@xxxxxxxxx> 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.


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux