Skip to content

Commit

Permalink
nodejs-lts: use system libuv
Browse files Browse the repository at this point in the history
  • Loading branch information
m0rg-dev authored and ericonr committed Apr 28, 2021
1 parent bdf57dd commit 6124c3c
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
25 changes: 25 additions & 0 deletions srcpkgs/nodejs-lts/patches/shared-uv.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
--- deps/uvwasi/uvwasi.gyp.orig
+++ deps/uvwasi/uvwasi.gyp
@@ -18,9 +18,6 @@
'src/wasi_rights.c',
'src/wasi_serdes.c',
],
- 'dependencies': [
- '../uv/uv.gyp:libuv',
- ],
'direct_dependent_settings': {
'include_dirs': ['include']
},
@@ -31,6 +28,12 @@
'_POSIX_C_SOURCE=200112',
],
}],
+ [ 'node_shared_libuv=="false"', {
+ 'dependencies': [ '../uv/uv.gyp:libuv' ],
+ }],
+ [ 'node_shared_libuv=="true"', {
+ 'libraries': [ '-luv' ],
+ }]
],
}
]
2 changes: 1 addition & 1 deletion srcpkgs/nodejs-lts/template
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Template file for 'nodejs-lts'
pkgname=nodejs-lts
version=12.21.0
revision=1
revision=2
wrksrc="node-v${version}"
# Need these for host v8 for torque, see https://github.com/nodejs/node/pull/21079
hostmakedepends="pkg-config python libatomic-devel zlib-devel which
Expand Down

0 comments on commit 6124c3c

Please sign in to comment.