Merge pull request #3050 from enolan/win-build
Make building on Windows a bit easier
commit97075c6f3681ab7eac76bff2244e12437c96fbb1
authorNiklas Larsson <metaniklas@gmail.com>
dateSun 20 Mar 2016, 11:47 (11 years ago)
parent76e22d0af1c9d2
config.mk+9−2
@@ -1,5 +1,12 @@
1−CC ?=cc
2−AR ?=ar
1+ifneq (, $(findstring MSYS, $(shell uname -a)))
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+
310RANLIB ?=ranlib
411
512CABAL :=cabal