xref: /OK3568_Linux_fs/yocto/meta-openembedded/meta-oe/recipes-devtools/nodejs/nodejs/libatomic.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1Link mksnapshot with libatomic on x86
2
3Clang-12 on x86 emits atomic builtins
4
5Fixes
6| module-compiler.cc:(.text._ZN2v88internal4wasm12_GLOBAL__N_123ExecuteCompilationUnitsERKSt10shared_ptrINS2_22BackgroundCompileTokenEEPNS0_8CountersEiNS2_19CompileBaselineOnlyE+0x558): un
7defined reference to `__atomic_load'
8
9Upstream-Status: Pending
10Signed-off-by: Khem Raj <raj.khem@gmail.com>
11
12--- a/tools/v8_gypfiles/v8.gyp
13+++ b/tools/v8_gypfiles/v8.gyp
14@@ -1436,6 +1436,7 @@
15     {
16       'target_name': 'mksnapshot',
17       'type': 'executable',
18+      'libraries': [ '-latomic' ],
19       'dependencies': [
20         'v8_base_without_compiler',
21         'v8_compiler_for_mksnapshot',
22