From: Matthew Brett <matthew.brett@lis.ac.uk>
To: mingw-w64-public@lists.sourceforge.net
Cc: "Pali Rohár" <pali.rohar@gmail.com>, gcc@gcc.gnu.org
Subject: Re: [Mingw-w64-public] gcc parameter -mcrtdll= for choosing Windows C RunTime DLL library
Date: Sun, 20 Nov 2022 16:20:26 +0000 [thread overview]
Message-ID: <CAH6Pt5rG35Nu-H-hgYQMP=HPQMxa8e9aXqC37cXqAB2JiWngpg@mail.gmail.com> (raw)
In-Reply-To: <834jut62jc.fsf@gnu.org>
Hi,
On Sun, Nov 20, 2022 at 3:59 PM Eli Zaretskii <eliz@gnu.org> wrote:
>
> > Date: Sun, 20 Nov 2022 16:44:08 +0100
> > From: Pali Rohár <pali.rohar@gmail.com>
> > Cc: gcc@gcc.gnu.org, mingw-w64-public@lists.sourceforge.net
> >
> > > Installing a redistributable is a nuisance, and dependence on non-system
> > > libraries might make the program non-free.
> >
> > On new windows versions they may be preinstalled (depends on newness of
> > windows version).
>
> I'm talking about older ones. It is customary nowadays to build on Windows
> 11 and then run on Windows 8.
>
> > And if your application uses features unavailable in
> > older (or default) crt versions then this make application code
> > simplifier. Also redistributable packages are in most cases installed by
> > Windows update mechanism, which could be marked as system library. But
> > well, this is more license discussion than development discussion...
>
> I mentioned that because people might inadvertently build GPL'ed GNU
> software using this option, and violate the GPL without knowing it. This is
> relevant to those who read this list and port GNU software to MS-Windows.
>
> > > > Note that with this option, you can also choose older version than the
> > > > default one (WinXP msvcrt.dll). So e.g. you can choose msvcrt20.dll or
> > > > crtdll.dll for older Windows version.
> > >
> > > Using the OS default MSVCRT already gets me that, at zero cost.
> >
> > Here "OS default MSVCRT" means Windows XP MSVCRT.DLL.
> >
> > On older windows versions there is no pre-installed MSVCRT.DLL. There
> > is MSVCRT20.DLL or CRTDLL.DLL (based on oldness of windows version). So
> > it is not at zero cost, you have yo either do that nuisance and install
> > MSVCRT.DLL as you write above or switch to older CRT version which is in
> > OS preinstalled.
>
> I never saw any problems with programs linked against MSVCRT.DLL, on all
> versions of Windows from XP up to Windows 10. None.
It's hard to argue that it is rarely necessary or desirable to link to
- say - UCRT. If it was, then we would not have the UCRT toolchains.
And in our particular case (Python extension modules) we need to use
UCRT linking to be compatible with the UCRT-linked standard Python
binary installs.
Cheers,
Matthew
next prev parent reply other threads:[~2022-11-20 16:21 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-20 12:53 Pali Rohár
2022-11-20 13:36 ` [Mingw-w64-public] " LIU Hao
2022-11-20 15:06 ` Pali Rohár
2022-11-21 5:21 ` LIU Hao
2022-11-26 19:09 ` Pali Rohár
2022-11-27 1:06 ` sotrdg sotrdg
2022-11-20 14:45 ` Eli Zaretskii
2022-11-20 15:04 ` Pali Rohár
2022-11-20 15:23 ` Eli Zaretskii
2022-11-20 15:44 ` Pali Rohár
2022-11-20 15:58 ` Eli Zaretskii
2022-11-20 16:19 ` [Mingw-w64-public] " ralph engels
2022-11-20 16:20 ` Matthew Brett [this message]
2022-11-20 21:22 ` Martin Storsjö
2022-12-04 12:16 ` Pali Rohár
2022-12-04 12:48 ` LIU Hao
2023-04-21 16:23 ` Pali Rohár
2023-05-06 10:45 ` Pali Rohár
2023-05-08 3:44 ` LIU Hao
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='CAH6Pt5rG35Nu-H-hgYQMP=HPQMxa8e9aXqC37cXqAB2JiWngpg@mail.gmail.com' \
--to=matthew.brett@lis.ac.uk \
--cc=gcc@gcc.gnu.org \
--cc=mingw-w64-public@lists.sourceforge.net \
--cc=pali.rohar@gmail.com \
/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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).