Merge pull request #3640 from RyanGlScott/fix-mingw-w64-msys-build
Fix the build on MSYS2 (Windows) when MSYSTEM=MINGW{32,64}
commitd1ea2776d59d76fcaf7b7d66cf0c13567281ad7c
authorNiklas Larsson <metaniklas@gmail.com>
dateMon 30 Jan 2017, 19:43 (10 years ago)
parent735fbd2eeb5e87
config.mk+3−1
@@ -1,4 +1,6 @@
1−ifneq (, $(findstring MSYS, $(shell uname -a)))
1+UNAME_INFO := $(shell uname -a)
2+
3+ifeq ($(filter , $(findstring MSYS, $(UNAME_INFO)) $(findstring MINGW, $(UNAME_INFO))),)
24 ifeq (cc,$(CC))
35 # In MSYS2, when using the mingw version of gcc, there is no cc -> gcc
46 # symlink. We can't use ?= here because CC is set implicitly to cc.