delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-Original-To: | cygwin AT cygwin DOT com |
Delivered-To: | cygwin AT cygwin DOT com |
DMARC-Filter: | OpenDMARC Filter v1.4.1 sourceware.org A7C2D3858408 |
Authentication-Results: | sourceware.org; |
dmarc=none (p=none dis=none) header.from=reckeng.com | |
Authentication-Results: | sourceware.org; spf=pass smtp.mailfrom=reckeng.com |
From: | Anthony Webber <akwebber AT reckeng DOT com> |
Subject: | Setting up toolchains |
To: | cygwin AT cygwin DOT com |
Message-ID: | <3034fa70-ad4c-3e8a-31da-d892c7deb3b7@reckeng.com> |
Date: | Mon, 27 Sep 2021 12:27:45 +0100 |
MIME-Version: | 1.0 |
X-Spam-Status: | No, score=-1.9 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, |
SPF_HELO_PASS, SPF_PASS autolearn=ham autolearn_force=no version=3.4.4 | |
X-Spam-Checker-Version: | SpamAssassin 3.4.4 (2020-01-24) on |
server2.sourceware.org | |
X-BeenThere: | cygwin AT cygwin DOT com |
X-Mailman-Version: | 2.1.29 |
List-Id: | General Cygwin discussions and problem reports <cygwin.cygwin.com> |
List-Archive: | <https://cygwin.com/pipermail/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-request AT cygwin DOT com?subject=help> |
List-Subscribe: | <https://cygwin.com/mailman/listinfo/cygwin>, |
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe> | |
Sender: | "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com> |
X-MIME-Autoconverted: | from base64 to 8bit by delorie.com id 18RBS5WO011261 |
Please excuse the naivety of this question, but I've looked elsewhere and can't find a good answer. Perhaps a good answer is to install MSYS2 alongside Cygwin. Anyway, I am trying to set up my gcc toolchains in Cygwin, by which I mean that I'm trying to set up the environment so that the right programs are called at the right time by build systems like cmake and waf, or if I want to build in a more manual fashion. Particularly, I want to be able to switch between toolchains easily. I have installed both the x86_64-pc-cygwin-gcc/g++ and x86_64-w64-mingw32-gcc/g++ packages using setup-x86_64.exe. The first thing I notice is that the gcc/g++ programs in /bin are identical to x86_64-pc-cygwin-gcc/g++, and that symbolic links aren't being used. I presume it's being done this way because this is considered the default, native Cygwin toolchain, and that there should be be relatively little to do in the way of configuration if I want to build Cygwin software. If I do want to cross-compile using x86_64-w64-mingw32-gcc/g++, then I imagine that the very least I should do is set a bunch of environment variables like CC and CXX (perhaps by sourcing a shell script), but really I'd like some advice here. What do you guys do? -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |