Fix libxslt lib compile bug

This commit is contained in:
crazywhalecc
2025-06-10 15:33:41 +08:00
committed by Jerry Ma
parent 6cb2cdd5a2
commit 11f21304f9
6 changed files with 11 additions and 12 deletions

View File

@@ -19,7 +19,7 @@ trait libxslt
*/
protected function build(): void
{
$static_libs = $this instanceof LinuxLibraryBase ? $this->getStaticLibFiles() : '';
$static_libs = $this instanceof LinuxLibraryBase ? $this->getStaticLibFiles(include_self: false) : '';
$ac = UnixAutoconfExecutor::create($this)
->appendEnv([
'CFLAGS' => "-I{$this->getIncludeDir()}",
@@ -28,7 +28,6 @@ trait libxslt
])
->addConfigureArgs(
'--without-python',
'--without-mem-debug',
'--without-crypto',
'--without-debug',
'--without-debugger',