Skip to content

Commit

Permalink
spidermonkey: fixup build on aarch64-linux
Browse files Browse the repository at this point in the history
All three versions are the same in this respect.
It's the issue with old libgcc_s propagated via our glibc package; e.g.
NixOS#209113

(cherry picked from commit 77a214e)
  • Loading branch information
vcunat authored and winterqt committed Feb 15, 2023
1 parent 57efa85 commit 2e431b8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkgs/development/interpreters/spidermonkey/common.nix
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,8 @@ stdenv.mkDerivation (finalAttrs: rec {
# while we have a double-float toolchain
NIX_CFLAGS_COMPILE = lib.optionalString (with stdenv.hostPlatform; isRiscV && is64bit && lib.versionOlder version "91") "-mabi=lp64d";

NIX_LDFLAGS = if (with stdenv; isAarch64 && isLinux) then [ "-lgcc" ] else null;

postPatch = lib.optionalString (lib.versionOlder version "102") ''
# This patch is a manually applied fix of
# https://bugzilla.mozilla.org/show_bug.cgi?id=1644600
Expand Down

0 comments on commit 2e431b8

Please sign in to comment.