add cache file option to autoconf executor by default (if cflags and ldflags match default)

This commit is contained in:
DubbleClick
2025-07-02 11:47:20 +07:00
parent 0695fb9381
commit 5577cd0fab
5 changed files with 30 additions and 12 deletions

View File

@@ -18,13 +18,8 @@ class libffi extends LinuxLibraryBase
*/
public function build(): void
{
$arch = getenv('SPC_ARCH');
UnixAutoconfExecutor::create($this)
->configure(
"--host={$arch}-unknown-linux",
"--target={$arch}-unknown-linux",
"--libdir={$this->getLibDir()}"
)
->configure()
->make();
if (is_file(BUILD_ROOT_PATH . '/lib64/libffi.a')) {