Bernard de la Paz wrote:

> I try to cross-compile GHC 8.0.1 with x86_64-mingw toolchain (gcc 6.2.1) and 
> native GHC 8.0.1. Sources are from 
> http://downloads.haskell.org/~ghc/8.0.1/ghc-8.0.1-src.tar.xz
>   cp mk/build.mk.example mk/build.mk
>   sed -i '1iBuildFlavour = perf' mk/build.mk

I'm pretty sure you will have better results with build flavour 
'quick-cross' or 'perf-cross'.

>   sed -i '1iStage1Only = YES' mk/build.mk
>   sed -i '1iHADDOCK_DOCS = NO' mk/build.mk
>   ./configure --prefix=~/x86_64-mingw \
>   --target=x86_64-unknown-mingw32 \
>        --with-gcc=/usr/bin/x86_64-w64-mingw32-gcc \
>       --with-ld=/usr/bin/x86_64-w64-mingw32-ld \
>       --with-nm=/usr/bin/x86_64-w64-mingw32-nm \
>       --with-ar=/usr/bin/x86_64-w64-mingw32-ar \
>       --with-ranlib=/usr/bin/x86_64-w64-mingw32-ranlib

It should be sufficient to just do:

    ./configure --target=x86_64-w64-mingw32

Erik
-- 
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/
_______________________________________________
ghc-devs mailing list
[email protected]
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs

Reply via email to