Skip to content

Commit c33ffee

Browse files
IvarWithoutBonesmarsam
authored andcommitted
nodejs-18_x: fix cross compilation to aarch64-linux
This adds a patch reverting nodejs/node#43200 because it breaks cross compilation to aarch64-linux. Gcc would not recognize the `-msign-return-address=all` flag causing compilation to fail. (cherry picked from commit 71b8597)
1 parent dd8eb78 commit c33ffee

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

pkgs/development/web/nodejs/v18.nix

+9-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{ callPackage, python3, enableNpm ? true }:
1+
{ callPackage, fetchpatch, python3, enableNpm ? true }:
22

33
let
44
buildNodejs = callPackage ./nodejs.nix {
@@ -10,6 +10,14 @@ buildNodejs {
1010
version = "18.8.0";
1111
sha256 = "sha256-K12YJdBe3mYU8WaKjZfXdP6S68gQiOxf31gYTc48hrk=";
1212
patches = [
13+
(fetchpatch {
14+
# Fixes cross compilation to aarch64-linux by reverting https://github.com/nodejs/node/pull/43200
15+
name = "revert-arm64-pointer-auth.patch";
16+
url = "https://github.com/nodejs/node/pull/43200/commits/d42c42cc8ac652ab387aa93205aed6ece8a5040a.patch";
17+
sha256 = "sha256-ipGzg4lEoftTJbt6sW+0QJO/AZqHvUkFKe0qlum+iLY=";
18+
revert = true;
19+
})
20+
1321
./disable-darwin-v8-system-instrumentation.patch
1422
];
1523
}

0 commit comments

Comments
 (0)