mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-03 23:05:41 +08:00
ld library path has to be set
This commit is contained in:
@@ -38,6 +38,11 @@ class GlobalEnvManager
|
||||
|
||||
// Define env vars for unix
|
||||
if (is_unix()) {
|
||||
if (!getenv('SPC_LINK_STATIC')) {
|
||||
$ldLibPath= getenv('LD_LIBRARY_PATH=' . BUILD_LIB_PATH);
|
||||
if ($ldLibPath) $ldLibPath = ":{$ldLibPath}";
|
||||
self::putenv('LD_LIBRARY_PATH=' . BUILD_LIB_PATH . $ldLibPath);
|
||||
}
|
||||
self::addPathIfNotExists(BUILD_BIN_PATH);
|
||||
self::addPathIfNotExists(PKG_ROOT_PATH . '/bin');
|
||||
$pkgConfigPath = getenv('PKG_CONFIG_PATH');
|
||||
|
||||
Reference in New Issue
Block a user