about summary refs log tree commit diff
path: root/pkgs/build-support
diff options
context:
space:
mode:
authorYureka <yuka@yuka.dev>2022-08-13 14:43:18 +0200
committerYureka <yuka@yuka.dev>2022-08-13 15:24:14 +0200
commit66ac47bdf6aa5d46678ae82802fe06f7376a22cc (patch)
tree189cdf6c93747f70920d54e31d401e94869d193f /pkgs/build-support
parentacf9dd62386cda3dbcaf8603ce57f8caac7effee (diff)
cargoSetupHook: remove unneeded rustflags for aarch64+static cross
The linked issue was resolved upstream and the `-lgcc` is no longer required
since https://github.com/rust-lang/compiler-builtins/pull/377 was merged.
Diffstat (limited to 'pkgs/build-support')
-rw-r--r--pkgs/build-support/rust/hooks/default.nix4
1 files changed, 0 insertions, 4 deletions
diff --git a/pkgs/build-support/rust/hooks/default.nix b/pkgs/build-support/rust/hooks/default.nix
index d336924570771..430f758e9ab8e 100644
--- a/pkgs/build-support/rust/hooks/default.nix
+++ b/pkgs/build-support/rust/hooks/default.nix
@@ -75,10 +75,6 @@ in {
           ${lib.optionalString (stdenv.buildPlatform.config != stdenv.hostPlatform.config) ''
             [target."${shortTarget}"]
             "linker" = "${ccForHost}"
-            ${# https://github.com/rust-lang/rust/issues/46651#issuecomment-433611633
-            lib.optionalString (stdenv.hostPlatform.isMusl && stdenv.hostPlatform.isAarch64) ''
-              "rustflags" = [ "-C", "target-feature=+crt-static", "-C", "link-arg=-lgcc" ]
-            ''}
           ''}
         '';
       };