[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hackers] MSYS2/Mingw primer
- To: hackers@xxxxxxxxxxxxx, Dave Hart <hart@xxxxxxx>
- Subject: Re: [hackers] MSYS2/Mingw primer
- From: Peter Rosin <peda@xxxxxxxxxx>
- Date: Thu, 16 Mar 2023 18:29:12 +0100
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=axentia.se; dmarc=pass action=none header.from=axentia.se; dkim=pass header.d=axentia.se; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=UdH1qVl10+Xi4M8PjYGBjPZbZpkUo931K1CPnmpd5Fw=; b=VDzde4ZIPQO2vjooxkk71SgN/l/n6RC/jXPiAQz9+T84bqPvP2yBBDYCnjUwJkvFN71HF0EAZk7VoyQRi0aLuYN0VfHceqkXlvJco0XvvpxdPwkdNySSk1NKqZ98Lte11apZR1B75hwlgWzvphn0wQEzTMYbiDA9hgjDjagLP0v3cjsQXyKnncCAKN0GUKxlgSC6ocf5qIdm7zA7gJIVLCj9zpWvz0K7V+4HeKVL1MawVKyjOPRJyqnDubNg+H0r7S/mBjsgtpmZG7SoxpF90Bn+j337qWEku1S4ST6aY0xgCvmEUBqsU/hRy16FU52EKTdUIoeWW4C/BsB6pEHMhg==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jgryx2c604F7MU/XlwFzw6Zp6b8jkUjtGVzO+y4mSIKfUiw6KUqrl1yLHAJt+ngfOFyOv7aM0B2qaOYQjHYBWbsc0S0hBpKrR+fIlXK4LHeVKfMvTZvhYzMriBployCsZnOQVwilCu89KjYeBfuHW7qrqPu0yGnkpzR3TI37o+w7sji67ObkLRA+1B36lK6QgH9ogPTf3tnuGWEOb6Hk2P8UGy3tBcmbkvXMqwzcUcIYKjZDhjcp8OOjH6p5N6ZGWxl0InmB9jShaWM6Pd3vXSBnDnLjrV1QgEpgU/JdKThqvJ813/evR5dFG6qEWdH9/UTQXGEY+H4tg8RjFfFYLg==
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=axentia.se;
- Delivered-to: hackers@xxxxxxxxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axentia.se; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=UdH1qVl10+Xi4M8PjYGBjPZbZpkUo931K1CPnmpd5Fw=; b=JjNt7XrodED4+O2AYcei8v5g92LwTROvQSZx4ts10ACVJsBxKmafOgX74sF4NFOtYUalNPBMLDB5OPWqqFoj4RxRuVR45elJZ6ln2FILD0lc85OBcP3/jeQ9fEwI8ZQxkEBjVs1ypdvGp7C1KKcOGV17v70zuWU1eYR31Jy0kmY=
- In-reply-to: <email@example.com>
- List-unsubscribe: mailto:firstname.lastname@example.org
- References: <email@example.com>
- Reply-to: hackers@xxxxxxxxxxxxx
- User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0
2023-03-16 at 16:40, Martin Burnicki wrote:
> Just for the case that you want to give MSYS2/Mingw a try: I've put some information together how to get started:
> I've also just recently started to use it, and I'm very happy for what I've seen so far. You can easily use things like git and ssh from within the bash shells provided by the build environment.
> A tiny example project that looks like a standard project for Linux and other Unix-like systems can be found here:
> If it would be possible to build NTP for Windows using this toolchain, we could probably avoid a lot of the hassle we have due to supporting different VS versions with their various project files.
> I'm assuming that it would even be possible to integrate Windows support into NTP's autoconf/automake stuff and let it detect the Windows target system, but as mentioned earlier, I'm not familiar with that auto stuff, so I'm not sure whether this makes sense, or whether to just create a set of makefiles once for each of the NTP programs.
> On the other hand, unlike Unix-like systems, Windows is a well-known target, so it may be possible to just set up a couple of static makefiles which don't have to be created by autoconf/automake.
[Not exactly the same as building with the MinGW compiler, but some
input on how it might be possible to build on Windows using autotools,
but with a Microsoft compiler (cl.exe) instead of the MinGW compiler.]
It's been a very long time since I looked at this problem space, so the
things discussed in the below thread might have bit-rotted in all sorts
of spectacular manners. But, for what it's worth:
The compile and ar-lib scripts mentioned are in upstream automake since
many years, so the variant with just AR=lib should be OK since I see
that AM_PROG_AR has already been added to the NTP configure.ac.
Who knows, this might be a way forward? I'm of course not holding my
breath, and sadly don't really have any time to spend...
This is hackers@xxxxxxxxxxxxx