This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH v2 14/14] the "compile" command
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: Eli Zaretskii <eliz at gnu dot org>
- Cc: tromey at redhat dot com, gdb-patches at sourceware dot org
- Date: Wed, 8 Oct 2014 21:42:33 +0200
- Subject: Re: [PATCH v2 14/14] the "compile" command
- Authentication-results: sourceware.org; auth=none
- References: <1403279874-23781-1-git-send-email-tromey at redhat dot com> <1403279874-23781-15-git-send-email-tromey at redhat dot com> <83fvizqtlq dot fsf at gnu dot org> <20141008174431 dot GB17704 at host2 dot jankratochvil dot net> <83wq8aies9 dot fsf at gnu dot org>
On Wed, 08 Oct 2014 20:42:46 +0200, Eli Zaretskii wrote:
> AFAIK, MinGW compilers simply ignore -fPIC.
My concern was only if the compiler refuses to run with such option which it
does not. I agree it prints:
<stdin>:1:0: warning: -fPIC ignored for target (all code is position independent) [enabled by default]
Before tuning the options to prevent for such target warnings it would be
better to know whether it works at all. Besides other reasons (such as not
having such platform available) I am not interested in this target so I hope
it is OK to leave it up to mingw maintainers to at least test it before
deciding what next.
> But if the feature will only work with these options and no others,
> then I guess it's OK to have them as fixed strings.
As I said these options are required for {i686,x86_64}-linux.
Thanks,
Jan