Linux Cross Work-Around for GHC #15275 (#515)
commit3932281deb892e68b10f8f181e12cc4d7f595639
authorTravis Whitaker <pi.boy.travis@gmail.com>
dateWed 25 Mar 2020, 19:52 (7 years ago)
parente9c882c
overlays/linux-cross.nix+3−1
@@ -47,7 +47,9 @@ let
4747 [ "-fexternal-interpreter"
4848 "-pgmi" "${qemuIservWrapper}/bin/iserv-wrapper"
4949 "-L${gmp}/lib"
50− ]) ++ lib.optionals hostPlatform.isAarch32 (map (opt: "--gcc-option=" + opt) [ "-fno-pic" "-fno-plt" ]);
50+ ]) ++ lib.optionals hostPlatform.isAarch32 (map (opt: "--gcc-option=" + opt) [ "-fno-pic" "-fno-plt" ])
51+ # Required to work-around https://gitlab.haskell.org/ghc/ghc/issues/15275
52+ ++ lib.optionals hostPlatform.isAarch64 [ "-fPIC" "--gcc-option=-fPIC" ];
5153 qemuTestWrapper = writeScriptBin "test-wrapper" ''
5254 #!${stdenv.shell}
5355 set -euo pipefail