From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id 1F888451B7 for ; Fri, 10 Feb 2023 22:23:02 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 2413C68BCE7; Sat, 11 Feb 2023 00:22:58 +0200 (EET) Received: from mail8.parnet.fi (mail8.parnet.fi [77.234.108.134]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id EFCB268ADF1 for ; Sat, 11 Feb 2023 00:22:50 +0200 (EET) Received: from mail9.parnet.fi (mail9.parnet.fi [77.234.108.21]) by mail8.parnet.fi with ESMTP id 31AMMndw028993-31AMMndx028993 for ; Sat, 11 Feb 2023 00:22:49 +0200 Received: from foo.martin.st (host-97-187.parnet.fi [77.234.97.187]) by mail9.parnet.fi (Postfix) with ESMTPS id 7BA02A1527 for ; Sat, 11 Feb 2023 00:22:49 +0200 (EET) Date: Sat, 11 Feb 2023 00:22:47 +0200 (EET) From: =?ISO-8859-15?Q?Martin_Storsj=F6?= To: FFmpeg development discussions and patches In-Reply-To: Message-ID: <6b8c93af-db59-f05b-97c0-4f7a6a32a7b0@martin.st> References: <27182552-d0fb-fa0-d15-b969bdd09ada@martin.st> <4ecd356-f04b-afe0-6d17-ef9850d6df2@martin.st> MIME-Version: 1.0 X-FE-Policy-ID: 3:14:2:SYSTEM Subject: Re: [FFmpeg-devel] [PATCH] mswindres: Use '-' instead of '/' for rc.exe options X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: On Fri, 10 Feb 2023, Ziemowit Laski wrote: > The build uses /bin/bash, which is configured as x86_64-pc-msys, and > that's where the rewriting happens. I always assumed that MinGW was > basically built on top of MSYS. No, that's a rather incorrect understanding. MinGW is an environment which gives you totally win32 native executables, just like MSVC does. The main feature is that the headers/libs are constructed manually so they're freely redistributable, in a GCC compatible form, and with only a very minimal set of extra portability helping functions (not providing POSIX compat, just the very minimum necessary to make GCC work). MinGW toolchains can be cross compilers from unix systems, or they can be win32 native. They can work on their own (where you call the compiler from an IDE, with GNU make in windows mode with cmd.exe executing makefile statements, or from another build tool). They can also be packaged as part of a posix compat environment. MSYS2 is a stripped down version of Cygwin, which both gives you a POSIX compatibility environment. MSYS2 (and Cygwin) gives you things that don't work in a pure win32 environment, such as shell scripts, bash etc. MSYS2 thus allows you to run e.g. unix style configure shell scripts. MSYS2 comes packaged with MinGW toolchains integrated, and the main purpose of it (contrary to Cygwin) is to provide the extra unix tools you need around a MinGW toolchain. FFmpeg requires MSYS2 (or similar) for running the configure shell script and the makefile. But all the weirdness about unix vs windows path handling is an MSYS2 feature - the mingw executables are just like any windows executable. // Martin _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".