void-packages/srcpkgs/nodejs/patches/shared-uv.patch
Morgan Thomas 0d47340150 nodejs: use system libuv
See https://github.com/void-linux/void-packages/issues/29034.

`shared-uv.patch` has been in the repo for a while but was slightly
broken.
2021-04-28 09:32:29 -03:00

25 lines
604 B
Diff

--- 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' ],
+ }]
],
}
]