on master help sign in
Merge pull request #3050 from enolan/win-build
97075c6Niklas Larsson
config.mk+9−2
@@ -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.
6+ CC =gcc
7+ endif
8+endif
9+
3RANLIB ?=ranlib
10RANLIB ?=ranlib
4
11
5CABAL :=cabal
12CABAL :=cabal