bring back zstd cmake flags

This commit is contained in:
DubbleClick 2025-06-07 23:19:32 +07:00
parent 2f53915064
commit 0ebd44bc4f
2 changed files with 6 additions and 2 deletions

View File

@ -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']);

View File

@ -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,