Skip to content

Commit 9564bae

Browse files
committed
ld library path has to be set
1 parent 3267878 commit 9564bae

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/SPC/util/GlobalEnvManager.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ public static function init(): void
3838

3939
// Define env vars for unix
4040
if (is_unix()) {
41+
if (!getenv('SPC_LINK_STATIC')) {
42+
$ldLibPath= getenv('LD_LIBRARY_PATH=' . BUILD_LIB_PATH);
43+
if ($ldLibPath) $ldLibPath = ":{$ldLibPath}";
44+
self::putenv('LD_LIBRARY_PATH=' . BUILD_LIB_PATH . $ldLibPath);
45+
}
4146
self::addPathIfNotExists(BUILD_BIN_PATH);
4247
self::addPathIfNotExists(PKG_ROOT_PATH . '/bin');
4348
$pkgConfigPath = getenv('PKG_CONFIG_PATH');

0 commit comments

Comments
 (0)