Add autoconf executor

This commit is contained in:
crazywhalecc
2025-06-09 19:32:31 +08:00
committed by Jerry Ma
parent 684b5d4534
commit 720251458f
34 changed files with 437 additions and 454 deletions

View File

@@ -80,13 +80,9 @@ trait postgresql
throw new RuntimeException('Unsupported version for postgresql: ' . $version . ' !');
}
$env = [
'CFLAGS' => $this->getLibExtraCFlags() . ' ' . $cflags,
'LDFLAGS' => $this->getLibExtraLdFlags(),
'LIBS' => $this->getLibExtraLibs(),
];
// configure
shell()->cd($this->source_dir . '/build')->initializeEnv($this)
->appendEnv(['CFLAGS' => $cflags])
->exec(
"{$envs} ../configure " .
"--prefix={$builddir} " .