@@ -1,5 +1,12 @@
1−CC ?=cc
1+ifneq (, $(findstring MSYS, $(shell uname -a)))
2−AR ?=ar
2+ ifeq (cc,$(CC))
3+ # In MSYS2, when using the mingw version of gcc, there is no cc -> gcc
4+ # symlink. We can't use ?= here because CC is set implicitly to cc.
5+ # Cross compiling users can set CC to their cross compiler.
3RANLIB ?=ranlib
10RANLIB ?=ranlib
5CABAL :=cabal
12CABAL :=cabal