From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from fencepost.gnu.org (fencepost.gnu.org [IPv6:2001:470:142:3::e]) by sourceware.org (Postfix) with ESMTPS id 8FBEF398243E for ; Sun, 20 Nov 2022 15:23:08 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 8FBEF398243E Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gnu.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gnu.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=BVfD2IWeQy4NSmV5CcWHdkVoAM/q1k4eHOtpIMzUhPU=; b=M+sfarQxzWbCgta6L/3/ nXandWrGOrLw4gavhIP9XqxwIEITLb9ehMyYLp7gsci+pOGlSdUARTo7DQHX+8RsbRvpgmwyCKxMP 9n8Vhyk9t/m+CALGobNXw+HpGUfDcBBuZiR8RGzqFqHyBh/6P5PI0zGj6x3Z8DUWEfP7FbIboDzNs G5d7rdOrXd5ch+Q6tvF4nE5kj0PLrgfYakpzVCoM1UVTvO4hdGiGt6RGfj91TZkblE4qCzORtlFAn SEW8G7P1epASXl9RlRvQTvVQIS+YiIMukquWod18+TLlvDw31QHJBJo2fKSYa+maEo4H+USetgd36 RA8ccDFrKa2Cpw==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1owm9z-0001M0-Mv; Sun, 20 Nov 2022 10:23:08 -0500 Date: Sun, 20 Nov 2022 17:23:15 +0200 Message-Id: <837czp6464.fsf@gnu.org> From: Eli Zaretskii To: Pali =?utf-8?Q?Roh=C3=A1r?= Cc: gcc@gcc.gnu.org, mingw-w64-public@lists.sourceforge.net In-Reply-To: <20221120150411.yimchs4ic3xtvny3@pali> (message from Pali =?utf-8?Q?Roh=C3=A1r?= on Sun, 20 Nov 2022 16:04:11 +0100) Subject: Re: gcc parameter -mcrtdll= for choosing Windows C RunTime DLL library References: <20221120125348.a6xh7kxmvrimse72@pali> <83cz9h65wc.fsf@gnu.org> <20221120150411.yimchs4ic3xtvny3@pali> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=2.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_BARRACUDACENTRAL,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: > Date: Sun, 20 Nov 2022 16:04:11 +0100 > From: Pali Rohár > Cc: gcc@gcc.gnu.org, mingw-w64-public@lists.sourceforge.net > > On Sunday 20 November 2022 16:45:55 Eli Zaretskii wrote: > > > Date: Sun, 20 Nov 2022 13:53:48 +0100 > > > From: Pali Rohár via Gcc > > > > > Linking a program against a specific runtime means the produced binary will > > not run on Windows systems older than the one where it was linked. Why is > > such a limitation a good idea, may I ask? > > It will run also on older Windows system if you install redistributable > runtime library. Which in most cases is already installed because other > programs use it. Installing a redistributable is a nuisance, and dependence on non-system libraries might make the program non-free. > And why you want a new version? Because of better C99/C11 support which > is in ucrtbase.dll That comes with a price, though. > 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.