meta-openembedded/meta-oe/recipes-devtools/nodejs/nodejs/0006-Use-target-ldflags.patch
Andrej Valek f0c1ee77d9 nodejs: fix target ldflags using
- do not drop target LDFLAGS
  - even if the target LDFLAGS have been specified, tools like torque was
    linked with system libraries

Signed-off-by: Andrej Valek <andrej.valek@siemens.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-03-19 21:00:06 -07:00

25 lines
984 B
Diff

The target LDFLAGS have been ignored. Tools like torque
have been loaded from system libraries, even if a native
one was the target.
|$ ldd torque
| libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1
| libcrypto.so.1.1 => /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1
| libssl.so.1.1 => /usr/lib/x86_64-linux-gnu/libssl.so.1.1
| libicui18n.so.63 => not found
| libicuuc.so.63 => not found
...
Signed-off-by: Andrej Valek <andrej.valek@siemens.com>
diff -Naur node-v10.15.1/deps/v8/gypfiles/toolchain.gypi node-v10.15.1/deps/v8/gypfiles/toolchain.gypi
--- node-v10.15.1/deps/v8/gypfiles/toolchain.gypi 2019-03-18 15:01:39.000000000 +0100
+++ node-v10.15.1/deps/v8/gypfiles/toolchain.gypi 2019-03-18 15:04:08.628361308 +0100
@@ -1106,6 +1106,7 @@
'cflags': [ '-fno-strict-aliasing' ],
}],
], # conditions
+ 'ldflags+': [ '$(LDFLAGS)' ],
}],
['OS=="solaris"', {
'defines': [ '__C99FEATURES__=1' ], # isinf() etc.