%PDF- <> %âãÏÓ endobj 2 0 obj <> endobj 3 0 obj <>/ExtGState<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI] >>/Annots[ 28 0 R 29 0 R] /MediaBox[ 0 0 595.5 842.25] /Contents 4 0 R/Group<>/Tabs/S>> endobj ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<> endobj 2 0 obj<>endobj 2 0 obj<>es 3 0 R>> endobj 2 0 obj<> ox[ 0.000000 0.000000 609.600000 935.600000]/Fi endobj 3 0 obj<> endobj 7 1 obj<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]>>/Subtype/Form>> stream
'use strict'; const common = require('../common'); const path = require('path'); const kNodeShared = Boolean(process.config.variables.node_shared); const kShlibSuffix = process.config.variables.shlib_suffix; const kExecPath = path.dirname(process.execPath); // If node executable is linked to shared lib, need to take care about the // shared lib path. function addLibraryPath(env) { if (!kNodeShared) { return; } env = env || process.env; env.LD_LIBRARY_PATH = (env.LD_LIBRARY_PATH ? env.LD_LIBRARY_PATH + path.delimiter : '') + kExecPath; // For AIX. env.LIBPATH = (env.LIBPATH ? env.LIBPATH + path.delimiter : '') + kExecPath; // For Mac OSX. env.DYLD_LIBRARY_PATH = (env.DYLD_LIBRARY_PATH ? env.DYLD_LIBRARY_PATH + path.delimiter : '') + kExecPath; // For Windows. env.PATH = (env.PATH ? env.PATH + path.delimiter : '') + kExecPath; } // Get the full path of shared lib. function getSharedLibPath() { if (common.isWindows) { return path.join(kExecPath, 'node.dll'); } return path.join(kExecPath, `libnode.${kShlibSuffix}`); } // Get the binary path of stack frames. function getBinaryPath() { return kNodeShared ? getSharedLibPath() : process.execPath; } module.exports = { addLibraryPath, getBinaryPath, getSharedLibPath };