ld library path has to be set

This commit is contained in:
henderkes 2026-02-21 13:03:02 +07:00
parent 32678782fc
commit 9564bae62b

View File

@ -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');