Remove curl libbrotli patches

This commit is contained in:
crazywhalecc 2025-06-10 15:52:56 +08:00 committed by Jerry Ma
parent b320eb853a
commit 145fe7ce13

View File

@ -6,7 +6,6 @@ namespace SPC\builder\unix\library;
use SPC\exception\FileSystemException;
use SPC\exception\RuntimeException;
use SPC\store\FileSystem;
use SPC\util\executor\UnixCMakeExecutor;
trait curl
@ -38,26 +37,6 @@ trait curl
// patch pkgconf
$this->patchPkgconfPrefix(['libcurl.pc']);
FileSystem::replaceFileStr(
BUILD_LIB_PATH . '/pkgconfig/libcurl.pc',
'-lbrotlienc -lbrotlidec -lbrotlicommon',
'-lbrotlidec -lbrotlicommon'
);
FileSystem::replaceFileStr(
BUILD_LIB_PATH . '/pkgconfig/libcurl.pc',
'-lbrotlidec -lbrotlicommon',
'-lbrotlienc -lbrotlidec -lbrotlicommon'
);
FileSystem::replaceFileStr(
BUILD_LIB_PATH . '/pkgconfig/libcurl.pc',
'libbrotlienc,libbrotlidec,libbrotlicommon',
'libbrotlidec,libbrotlicommon'
);
FileSystem::replaceFileStr(
BUILD_LIB_PATH . '/pkgconfig/libcurl.pc',
'libbrotlidec,libbrotlicommon',
'libbrotlienc,libbrotlidec,libbrotlicommon'
);
shell()->cd(BUILD_LIB_PATH . '/cmake/CURL/')
->exec("sed -ie 's|\"/lib/libcurl.a\"|\"" . BUILD_LIB_PATH . "/libcurl.a\"|g' CURLTargets-release.cmake");
}