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