This commit is contained in:
DubbleClick
2025-05-21 14:15:58 +07:00
parent 7698ceb108
commit 3f8d297fb1
6 changed files with 8 additions and 13 deletions

View File

@@ -95,8 +95,8 @@ trait UnixLibraryTrait
logger()->debug('Patching ' . $realpath);
// replace prefix
$file = FileSystem::readFile($realpath);
$file = str_replace(' /lib/', ' ' . BUILD_LIB_PATH . '/', $file);
$file = preg_replace("/^libdir=.*$/m", "libdir='" . BUILD_LIB_PATH . "'", $file);
$file = str_replace(' /lib/', ' ' . BUILD_LIB_PATH . '/', $file);
+ $file = preg_replace('/^libdir=.*$/m', "libdir='" . BUILD_LIB_PATH . "'", $file);
FileSystem::writeFile($realpath, $file);
}
}