about summary refs log tree commit diff
path: root/pkgs/applications/networking/browsers/firefox/common.nix
diff options
context:
space:
mode:
authorVladimír Čunát <v@cunat.cz>2023-01-15 09:13:34 +0100
committerVladimír Čunát <v@cunat.cz>2023-01-15 09:13:34 +0100
commitcdf02835ebf93dae3d38f665ce3530106f59b7db (patch)
treee692aac8d6f5687adffb24ec99a0fdbac26388e7 /pkgs/applications/networking/browsers/firefox/common.nix
parentfd82d2bf83fd38b36b463f2c5f956fc3bf900995 (diff)
firefox: fixup build on aarch64-linux
It's the issue with old libgcc_s propagated via our glibc package; e.g.
https://github.com/NixOS/nixpkgs/pull/209113
Diffstat (limited to 'pkgs/applications/networking/browsers/firefox/common.nix')
-rw-r--r--pkgs/applications/networking/browsers/firefox/common.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/applications/networking/browsers/firefox/common.nix b/pkgs/applications/networking/browsers/firefox/common.nix
index 0f57ddefe1694..e8deb9fcd9cc7 100644
--- a/pkgs/applications/networking/browsers/firefox/common.nix
+++ b/pkgs/applications/networking/browsers/firefox/common.nix
@@ -471,6 +471,8 @@ buildStdenv.mkDerivation ({
   separateDebugInfo = enableDebugSymbols;
   enableParallelBuilding = true;
 
+  NIX_LDFLAGS = if (with stdenv; isAarch64 && isLinux) then [ "-lgcc" ] else null;
+
   # tests were disabled in configureFlags
   doCheck = false;