From 2852daca0437287a03e454b3f3516d5d0876efd3 Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Sun, 22 Jan 2023 23:12:20 +0000 Subject: [PATCH] 3p/tvl/tools/cheddar: apply aarch64 fix --- third_party/tvl/tools/cheddar/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/third_party/tvl/tools/cheddar/default.nix b/third_party/tvl/tools/cheddar/default.nix index 17efae91ff..4e0c64384f 100644 --- a/third_party/tvl/tools/cheddar/default.nix +++ b/third_party/tvl/tools/cheddar/default.nix @@ -8,6 +8,8 @@ depot.third_party.naersk.buildPackage { # Use our custom bat syntax set, which is everything from upstream, # plus additional languages we care about. BAT_SYNTAXES = "${depot.third_party.bat_syntaxes}"; + + NIX_LDFLAGS = "${x.NIX_LDFLAGS or ""}${pkgs.lib.optionalString (pkgs.stdenv.isLinux && pkgs.stdenv.isAarch64 && pkgs.stdenv.cc.isGNU) " -lgcc"}"; }; passthru = {