on iko/ghcjs-patch-master help sign in
Linux Cross Work-Around for GHC #15275 (#515)
3932281Travis Whitaker
overlays/linux-cross.nix+3−1
@@ -47,7 +47,9 @@ let
47 [ "-fexternal-interpreter"
47 [ "-fexternal-interpreter"
48 "-pgmi" "${qemuIservWrapper}/bin/iserv-wrapper"
48 "-pgmi" "${qemuIservWrapper}/bin/iserv-wrapper"
49 "-L${gmp}/lib"
49 "-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" ];
51 qemuTestWrapper = writeScriptBin "test-wrapper" ''
53 qemuTestWrapper = writeScriptBin "test-wrapper" ''
52 #!${stdenv.shell}
54 #!${stdenv.shell}
53 set -euo pipefail
55 set -euo pipefail