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
  • Loading branch information
misuzu committed Jan 17, 2023
1 parent 6dccdc4 commit ba3db3e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkgs/tools/networking/zerotierone/default.nix
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 ba3db3e

Please sign in to comment.