mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 12:54:52 +08:00
ld library path has to be set
This commit is contained in:
parent
32678782fc
commit
9564bae62b
@ -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');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user