���� JFIF �� � ( %"1"%)+...383,7(-.-
![]() Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20 System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64 User : apache ( 48) PHP Version : 7.4.20 Disable Function : NONE Directory : /home/real/node-v13.0.1/test/common/ |
'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 : '') + path.join(kExecPath, 'lib.target'); // For AIX. env.LIBPATH = (env.LIBPATH ? env.LIBPATH + path.delimiter : '') + path.join(kExecPath, 'lib.target'); // 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'); } else if (common.isOSX) { return path.join(kExecPath, `libnode.${kShlibSuffix}`); } else { return path.join(kExecPath, 'lib.target', `libnode.${kShlibSuffix}`); } } // Get the binary path of stack frames. function getBinaryPath() { return kNodeShared ? getSharedLibPath() : process.execPath; } module.exports = { addLibraryPath, getBinaryPath, getSharedLibPath };