We are passing flags to `configure.py` in order to tell the nodejs build toolchain to use shared libraries. The toolchain seems to mistakenly also try use shared libraries for host build, but it does not add respective linker flags (For example `-lz` for zlib). This commit hardcodes these flags to be always passed to linker by setting linker to linker + LDFLAGS of shared libraries
12 lines
408 B
Diff
12 lines
408 B
Diff
--- ./deps/v8/BUILD.gn 2021-06-03 07:15:30.000000000 +0530
|
|
+++ ./deps/v8/BUILD.gn.mod 2021-07-17 17:32:54.134091233 +0530
|
|
@@ -17,6 +17,8 @@
|
|
import("gni/snapshot_toolchain.gni")
|
|
import("gni/v8.gni")
|
|
|
|
+v8_target_cpu = getenv("DEST_CPU")
|
|
+
|
|
# Specifies if the target build is a simulator build. Comparing target cpu
|
|
# with v8 target cpu to not affect simulator builds for making cross-compile
|
|
# snapshots.
|