haskell infra: Also pass --with-ar in cross builds

This commit is contained in:
John Ericson 2018-09-18 18:49:58 -04:00
parent 6769437186
commit 750933a17c

View File

@ -120,6 +120,7 @@ let
"--with-ghc-pkg=${ghc.targetPrefix}ghc-pkg"
"--with-gcc=${stdenv.cc.targetPrefix}cc"
"--with-ld=${stdenv.cc.bintools.targetPrefix}ld"
"--with-ar=${stdenv.cc.bintools.targetPrefix}ar"
# use the one that comes with the cross compiler.
"--with-hsc2hs=${ghc.targetPrefix}hsc2hs"
"--with-strip=${stdenv.cc.bintools.targetPrefix}strip"