fix undefined references to brotlicommon functions in gd.so

This commit is contained in:
DubbleClick
2025-05-21 17:58:11 +07:00
parent 11c116480f
commit 3ff31d20cf
3 changed files with 7 additions and 3 deletions

View File

@@ -96,7 +96,10 @@ trait UnixLibraryTrait
// replace prefix
$file = FileSystem::readFile($realpath);
$file = str_replace(
' /lib/', ' ' . BUILD_LIB_PATH . '/', $file);
' /lib/',
' ' . BUILD_LIB_PATH . '/',
$file
);
$file = preg_replace('/^libdir=.*$/m', "libdir='" . BUILD_LIB_PATH . "'", $file);
FileSystem::writeFile($realpath, $file);
}