Skip to content

test: add lib path env when node_shared=true

When building the node with --shared option, the major output is the shared library. However, we still build a node executable which links to the shared lib. It's for testing purpose. When testing with the executable, some test cases move/copy the executable, change the relative path to the shared library and fail. Using lib path env would solve the issue. However, in macOS, need to modify the dependency in the executable by using the install_name_tool utility. In AIX, -brtl linker option rebinds the symbols in the executable and addon modules could use them.

Refs: https://github.com/nodejs/node/issues/18535

Signed-off-by: Yihong Wang yh.wang@ibm.com

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines
Affected core subsystem(s)

test, build

Merge request reports

Loading