From: Keith Marshall <keith@users.osdn.me>
To: Christian Biesinger <cbiesinger@google.com>,
Eli Zaretskii <eliz@gnu.org>
Cc: gdb-patches <gdb-patches@sourceware.org>
Subject: Re: Cross-compiling a MinGW GDB
Date: Wed, 22 Jul 2020 20:58:20 +0100 [thread overview]
Message-ID: <42845b41-53b0-2d9c-2f6f-8af8f314a7eb@users.osdn.me> (raw)
In-Reply-To: <CAPTJ0XGmiE8Oi_ejiHznQFaVu2nRaY0i5AeSJAubMVf77PCoaA@mail.gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 1847 bytes --]
Thanks, Christian
On 22/07/2020 18:47, Christian Biesinger wrote:
> On Wed, Jul 22, 2020 at 11:51 AM Eli Zaretskii <eliz@gnu.org> wrote:
>> Does anyone build their MinGW GDB by cross-compiling it on GNU/Linux?
>
> I haven't done this myself but I am aware of two things:
> - https://sourceware.org/gdb/wiki/CrossCompilingWithPythonSupport
Basically, that mirrors the procedure which I have adopted; the
principle difference is that I have the Windows build of Python-2.7.18
installed in my default Wine prefix, so am able to run python.exe when
required by the gdb build system. It yields
python_includes='-IC:/Python27/include -IC:/Python27/include\r'
python_libs='-LC:/Python27/libs -lpython27\r'
python_prefix='C:/Python27\r'
That's almost usable, but the terminating '\r' characters, and the 'C:'
drive prefixes, are troublesome. I've written a simple wrapper script,
which unconditionally strips the '\r' terminators, but I'm not sure if I
should unconditionally transform the 'C:' prefixes: certainly, it would
seem to be appropriate for python_includes, and for python_libs, but
perhaps not for python_prefix?
> - The patch discussed at
> https://sourceware.org/legacy-ml/gdb-patches/2012-12/msg00754.html
> claims to improve cross-compiling with python (Debian used to carry
> that patch, though they've since dropped it)
Sorry, but I really don't see how that would help in my situation. It
looks for a $host specific python-config command (mingw32-python-config)
which I would need to write anyway, and it would perform no better than
running gdb's existing python-config.py via python.exe, with appropriate
transformations applied to the output.
--
Regards,
Keith.
Public key available from keys.gnupg.net
Key fingerprint: C19E C018 1547 DE50 E1D4 8F53 C0AD 36C6 347E 5A3F
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
prev parent reply other threads:[~2020-07-22 20:01 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-22 16:51 Eli Zaretskii
2020-07-22 17:47 ` Christian Biesinger
2020-07-22 19:58 ` Keith Marshall [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=42845b41-53b0-2d9c-2f6f-8af8f314a7eb@users.osdn.me \
--to=keith@users.osdn.me \
--cc=cbiesinger@google.com \
--cc=eliz@gnu.org \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox