diff --git a/src/node_main.cc b/src/node_main.cc index 6bac1075932587..1d9feec5958db0 100644 --- a/src/node_main.cc +++ b/src/node_main.cc @@ -96,6 +96,14 @@ int wmain(int argc, wchar_t* wargv[]) { #include #endif +#if defined(__MVS__) +#include "zos-setlibpath.h" + +// z/OS linker doesn't support rpath function, so we set LIBPATH in the source +// so libnode DLL can load. +__setlibpath libpath; +#endif + namespace node { namespace per_process { extern bool linux_at_secure;