makeCmakeArgs

This commit is contained in:
DubbleClick
2025-06-07 20:09:50 +07:00
parent e31942bf1e
commit 2dde53760a
25 changed files with 41 additions and 138 deletions

View File

@@ -23,16 +23,9 @@ trait zstd
'LDFLAGS' => $this->getLibExtraLdFlags(),
'LIBS' => $this->getLibExtraLibs(),
])
->exec(
'cmake ' .
"{$this->builder->makeCmakeArgs()} " .
'-DZSTD_BUILD_STATIC=ON ' .
'-DZSTD_BUILD_SHARED=OFF ' .
'-DPOSITION_INDEPENDENT_CODE=ON ' .
'..'
)
->exec("cmake --build . -j {$this->builder->concurrency}")
->exec('make install');
->execWithEnv("cmake {$this->builder->makeCmakeArgs()} ..")
->execWithEnv("cmake --build . -j {$this->builder->concurrency}")
->execWithEnv('make install');
$this->patchPkgconfPrefix(['libzstd.pc']);
}
}