forked from openembedded/meta-openembedded
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nodejs: Do not use native host nodejs binaries
the wordlength of the binaries which are used for generating inputs during build should match the target, currently, if world lengths are not same for build host and target then wrong code is being generated, so we have two options, use qemu usermode to run the target binaries as it is during build, which works but takes longer to build and qemu segfaults on some architectures e.g. mips, second option is to require multilib toolchain on host and then use matching wordlength for host binaries. It also means nodejs-native dependency can be dropped which is kind of nice Signed-off-by: Khem Raj <[email protected]>
- Loading branch information
Showing
4 changed files
with
103 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
93 changes: 93 additions & 0 deletions
93
meta-oe/recipes-devtools/nodejs/nodejs/0001-Delete-additional-libs-for-host-binaries.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
From fbf9c3dedc4114065a6db8718daed3dbc98a743c Mon Sep 17 00:00:00 2001 | ||
From: Khem Raj <[email protected]> | ||
Date: Sat, 17 Apr 2021 09:39:27 -0700 | ||
Subject: [PATCH] Delete additional libs for host binaries | ||
|
||
While building host tools during cross build, these libs are not needed | ||
and would need additional deps if desired to be linked in | ||
|
||
Upstream-Status: Inappropriate [Cross-compile specific] | ||
Signed-off-by: Khem Raj <[email protected]> | ||
--- | ||
tools/icu/icu-generic.gyp | 4 ++++ | ||
tools/v8_gypfiles/v8.gyp | 7 +++++++ | ||
2 files changed, 11 insertions(+) | ||
|
||
--- a/tools/icu/icu-generic.gyp | ||
+++ b/tools/icu/icu-generic.gyp | ||
@@ -522,6 +522,7 @@ | ||
'target_name': 'genrb', | ||
'type': 'executable', | ||
'toolsets': [ 'host' ], | ||
+ 'libraries!':[ '-lcrypto', '-lssl', '-lz', '-lhttp_parser', '-luv', '-lnghttp2', '-lcares', '-lbrotlienc', '-lbrotlidec' ], | ||
'dependencies': [ 'icutools' ], | ||
'sources': [ | ||
'<@(icu_src_genrb)' | ||
@@ -538,6 +539,7 @@ | ||
'target_name': 'iculslocs', | ||
'toolsets': [ 'host' ], | ||
'type': 'executable', | ||
+ 'libraries!':[ '-lcrypto', '-lssl', '-lz', '-lhttp_parser', '-luv', '-lnghttp2', '-lcares', '-lbrotlienc', '-lbrotlidec' ], | ||
'dependencies': [ 'icutools' ], | ||
'sources': [ | ||
'iculslocs.cc', | ||
@@ -550,6 +552,7 @@ | ||
'target_name': 'icupkg', | ||
'toolsets': [ 'host' ], | ||
'type': 'executable', | ||
+ 'libraries!':[ '-lcrypto', '-lssl', '-lz', '-lhttp_parser', '-luv', '-lnghttp2', '-lcares', '-lbrotlienc', '-lbrotlidec' ], | ||
'dependencies': [ 'icutools' ], | ||
'sources': [ | ||
'<@(icu_src_icupkg)', | ||
@@ -561,6 +564,7 @@ | ||
'target_name': 'genccode', | ||
'toolsets': [ 'host' ], | ||
'type': 'executable', | ||
+ 'libraries!':[ '-lcrypto', '-lssl', '-lz', '-lhttp_parser', '-luv', '-lnghttp2', '-lcares', '-lbrotlienc', '-lbrotlidec' ], | ||
'dependencies': [ 'icutools' ], | ||
'sources': [ | ||
'<@(icu_src_genccode)', | ||
--- a/tools/v8_gypfiles/v8.gyp | ||
+++ b/tools/v8_gypfiles/v8.gyp | ||
@@ -1310,6 +1310,7 @@ | ||
{ | ||
'target_name': 'bytecode_builtins_list_generator', | ||
'type': 'executable', | ||
+ 'libraries!':[ '-licui18n', '-licuuc', '-licudata', '-lcrypto', '-lssl', '-lz', '-lhttp_parser', '-luv', '-lnghttp2', '-lcares', '-lbrotlienc', '-lbrotlidec' ], | ||
'conditions': [ | ||
['want_separate_host_toolset', { | ||
'toolsets': ['host'], | ||
@@ -1333,6 +1334,8 @@ | ||
{ | ||
'target_name': 'mksnapshot', | ||
'type': 'executable', | ||
+ 'libraries!':[ '-lcrypto', '-lssl', '-lz', '-lhttp_parser', '-luv', '-lnghttp2', '-lcares', '-lbrotlienc', '-lbrotlidec' ], | ||
+ 'library_dirs':[ '../../../../staging_dir/hostpkg/share/icu/current/lib' ], | ||
'dependencies': [ | ||
'v8_base_without_compiler', | ||
'v8_compiler_for_mksnapshot', | ||
@@ -1354,6 +1357,7 @@ | ||
{ | ||
'target_name': 'torque', | ||
'type': 'executable', | ||
+ 'libraries!':[ '-licui18n', '-licuuc', '-licudata', '-lcrypto', '-lssl', '-lz', '-lhttp_parser', '-luv', '-lnghttp2', '-lcares', '-lbrotlienc', '-lbrotlidec' ], | ||
'dependencies': [ | ||
'torque_base', | ||
# "build/win:default_exe_manifest", | ||
@@ -1392,6 +1396,7 @@ | ||
{ | ||
'target_name': 'torque-language-server', | ||
'type': 'executable', | ||
+ 'libraries!':[ '-licui18n', '-licuuc', '-licudata', '-lcrypto', '-lssl', '-lz', '-lhttp_parser', '-luv', '-lnghttp2', '-lcares', '-lbrotlienc', '-lbrotlidec' ], | ||
'conditions': [ | ||
['want_separate_host_toolset', { | ||
'toolsets': ['host'], | ||
@@ -1419,6 +1424,8 @@ | ||
{ | ||
'target_name': 'gen-regexp-special-case', | ||
'type': 'executable', | ||
+ 'libraries!':[ '-lcrypto', '-lssl', '-lz', '-lhttp_parser', '-luv', '-lnghttp2', '-lcares', '-lbrotlienc', '-lbrotlidec' ], | ||
+ 'library_dirs':[ '../../../../staging_dir/hostpkg/share/icu/current/lib' ], | ||
'dependencies': [ | ||
'v8_libbase', | ||
# "build/win:default_exe_manifest", |
71 changes: 0 additions & 71 deletions
71
meta-oe/recipes-devtools/nodejs/nodejs/0002-Using-native-binaries.patch
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters