mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 12:54:52 +08:00
Fix libxslt build again
This commit is contained in:
parent
ffa5219d23
commit
b5ceda5955
@ -4,7 +4,8 @@ declare(strict_types=1);
|
|||||||
|
|
||||||
namespace SPC\builder\unix\library;
|
namespace SPC\builder\unix\library;
|
||||||
|
|
||||||
use SPC\builder\linux\library\LinuxLibraryBase;
|
use SPC\builder\linux\LinuxBuilder;
|
||||||
|
use SPC\builder\macos\MacOSBuilder;
|
||||||
use SPC\exception\FileSystemException;
|
use SPC\exception\FileSystemException;
|
||||||
use SPC\exception\RuntimeException;
|
use SPC\exception\RuntimeException;
|
||||||
use SPC\exception\WrongUsageException;
|
use SPC\exception\WrongUsageException;
|
||||||
@ -19,12 +20,13 @@ trait libxslt
|
|||||||
*/
|
*/
|
||||||
protected function build(): void
|
protected function build(): void
|
||||||
{
|
{
|
||||||
$static_libs = $this instanceof LinuxLibraryBase ? $this->getStaticLibFiles(include_self: false) : '';
|
$static_libs = $this->builder instanceof LinuxBuilder ? $this->getStaticLibFiles(include_self: false) : '';
|
||||||
|
$cpp = $this->builder instanceof MacOSBuilder ? '-lc++' : '-lstdc++';
|
||||||
$ac = UnixAutoconfExecutor::create($this)
|
$ac = UnixAutoconfExecutor::create($this)
|
||||||
->appendEnv([
|
->appendEnv([
|
||||||
'CFLAGS' => "-I{$this->getIncludeDir()}",
|
'CFLAGS' => "-I{$this->getIncludeDir()}",
|
||||||
'LDFLAGS' => "-L{$this->getLibDir()}",
|
'LDFLAGS' => "-L{$this->getLibDir()}",
|
||||||
'LIBS' => "{$static_libs}",
|
'LIBS' => "{$static_libs} {$cpp}",
|
||||||
])
|
])
|
||||||
->addConfigureArgs(
|
->addConfigureArgs(
|
||||||
'--without-python',
|
'--without-python',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user