Skip to content

Commit

Permalink
zerotierone: add -lgcc to NIX_LDFLAGS
Browse files Browse the repository at this point in the history
This is required to workaround NixOS#201254

(cherry picked from commit ba3db3e)
  • Loading branch information
misuzu authored and winterqt committed Feb 15, 2023
1 parent e5e8f1d commit 2097723
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkgs/tools/networking/zerotierone/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ replace-with = "vendored-sources"' >> ./zeroidc/.cargo/config.toml

outputs = [ "out" "man" ];

# https://github.com/NixOS/nixpkgs/issues/201254
NIX_LDFLAGS = lib.optionalString (stdenv.isLinux && stdenv.isAarch64 && stdenv.cc.isGNU) "-lgcc";

meta = with lib; {
description = "Create flat virtual Ethernet networks of almost unlimited size";
homepage = "https://www.zerotier.com";
Expand Down

0 comments on commit 2097723

Please sign in to comment.