Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormonojenkins <jo.shields+jenkins@xamarin.com>2018-09-27 17:30:07 +0300
committerLudovic Henry <luhenry@microsoft.com>2018-09-27 17:30:07 +0300
commit59f2dbf28b0664e7934e96d87d33188828403cb8 (patch)
treed2fd9a5b07ad6f02c51bd25276a2d3798cd9c842
parent401bce867d334be862f0b4d59da04c890873a893 (diff)
[sdks] Debian Linux doesn't need to build MXE (#10819)
Debian and its derivatives include full mingw chain (both 64 and 32-bit) and so they don't need to build the toolchain at all. However, the current detection of Linux flavor takes into account only Ubuntu and all other distros are configured to *require* MXE but they do *not* build them. This commit fixes detection of distros which provide the mingw toolchain in a way that makes it easy to extend the set of compatible distributions as needed. In order to mark a distribution as one with MinGW one has to add the `:Distro:` string to the `LINUX_WITH_MINGW` make variable in `mxe.mk`. The `Distro` string is whatever the `determine-linux-flavor.sh` script returns.
-rw-r--r--sdks/builds/mxe.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/sdks/builds/mxe.mk b/sdks/builds/mxe.mk
index 19180fd94cd..ea784ccb928 100644
--- a/sdks/builds/mxe.mk
+++ b/sdks/builds/mxe.mk
@@ -3,7 +3,10 @@ ifeq ($(UNAME),Linux)
LINUX_FLAVOR=$(shell ./determine-linux-flavor.sh)
endif
-ifeq ($(LINUX_FLAVOR),Ubuntu)
+LINUX_WITH_MINGW=:Ubuntu:,:Debian:
+LINUX_HAS_MINGW=$(if $(findstring :$(LINUX_FLAVOR):,$(LINUX_WITH_MINGW)),yes)
+
+ifeq ($(LINUX_HAS_MINGW),yes)
MXE_PREFIX=/usr
.PHONY: provision-mxe