mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-19 13:24:51 +08:00
bring back zstd cmake flags
This commit is contained in:
parent
2f53915064
commit
0ebd44bc4f
@ -23,7 +23,12 @@ trait zstd
|
||||
'LDFLAGS' => $this->getLibExtraLdFlags(),
|
||||
'LIBS' => $this->getLibExtraLibs(),
|
||||
])
|
||||
->execWithEnv("cmake {$this->builder->makeCmakeArgs()} ..")
|
||||
->execWithEnv(
|
||||
"cmake {$this->builder->makeCmakeArgs()} " .
|
||||
'-DZSTD_BUILD_STATIC=ON ' .
|
||||
'-DZSTD_BUILD_SHARED=OFF ' .
|
||||
'..'
|
||||
)
|
||||
->execWithEnv("cmake --build . -j {$this->builder->concurrency}")
|
||||
->execWithEnv('make install');
|
||||
$this->patchPkgconfPrefix(['libzstd.pc']);
|
||||
|
||||
@ -31,7 +31,6 @@ class SPCConfigUtil
|
||||
* @param array $libraries Additional library name list
|
||||
* @param bool $include_suggest_ext Include suggested extensions
|
||||
* @param bool $include_suggest_lib Include suggested libraries
|
||||
* @param bool $with_dependencies
|
||||
* @return array{
|
||||
* cflags: string,
|
||||
* ldflags: string,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user