mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-10 02:15:36 +08:00
bring back zstd cmake flags
This commit is contained in:
@@ -23,7 +23,12 @@ trait zstd
|
|||||||
'LDFLAGS' => $this->getLibExtraLdFlags(),
|
'LDFLAGS' => $this->getLibExtraLdFlags(),
|
||||||
'LIBS' => $this->getLibExtraLibs(),
|
'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("cmake --build . -j {$this->builder->concurrency}")
|
||||||
->execWithEnv('make install');
|
->execWithEnv('make install');
|
||||||
$this->patchPkgconfPrefix(['libzstd.pc']);
|
$this->patchPkgconfPrefix(['libzstd.pc']);
|
||||||
|
|||||||
@@ -31,7 +31,6 @@ class SPCConfigUtil
|
|||||||
* @param array $libraries Additional library name list
|
* @param array $libraries Additional library name list
|
||||||
* @param bool $include_suggest_ext Include suggested extensions
|
* @param bool $include_suggest_ext Include suggested extensions
|
||||||
* @param bool $include_suggest_lib Include suggested libraries
|
* @param bool $include_suggest_lib Include suggested libraries
|
||||||
* @param bool $with_dependencies
|
|
||||||
* @return array{
|
* @return array{
|
||||||
* cflags: string,
|
* cflags: string,
|
||||||
* ldflags: string,
|
* ldflags: string,
|
||||||
|
|||||||
Reference in New Issue
Block a user