ghc: tweak cross-compilation to mingw32
authorSergei Trofimovich <slyfox@gentoo.org>
Sun, 23 Apr 2017 14:10:26 +0000 (15:10 +0100)
committerSergei Trofimovich <slyfox@gentoo.org>
Sun, 23 Apr 2017 14:17:51 +0000 (15:17 +0100)
commit8908ba31c4dcb6ce619ec46e88fbbac78651a04b
tree149d01a16dc2a7477ef4f3f6c13cd33b0865b271
parent2fa6873faf16a0f3b23742222a00f0647554395b
ghc: tweak cross-compilation to mingw32

The build failure when cross-compiling from
linux to windows looks like:

    HC [stage 1] ghc/stage2/build/tmp/ghc-stage2.exe
      Call hs_init_ghc() from your main() function to set these options.
  /usr/libexec/gcc/i686-w64-mingw32/ld: cannot find -lHSghc-8.3-0

Similar to commit 745032dd02da511067c2939259ed212852187e0f
("rts: tweak cross-compilation to mingw32") decision to split
stage2 should be done based based on TargetOS, not HostOS.

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
rules/build-package-way.mk