Add --enable-pic for default autoconf args

This commit is contained in:
crazywhalecc 2025-06-09 19:54:46 +08:00 committed by Jerry Ma
parent 8b09e1a446
commit 1b08a250f6
4 changed files with 3 additions and 8 deletions

View File

@ -10,12 +10,7 @@ trait libiconv
{
protected function build(): void
{
UnixAutoconfExecutor::create($this)
->configure(
'--enable-pic',
'--enable-extra-encodings',
)
->make();
UnixAutoconfExecutor::create($this)->configure('--enable-extra-encodings')->make();
$this->patchLaDependencyPrefix(['libiconv.la']);
}
}

View File

@ -16,7 +16,7 @@ trait onig
*/
protected function build(): void
{
UnixAutoconfExecutor::create($this)->configure('--enable-pic')->make();
UnixAutoconfExecutor::create($this)->configure()->make();
$this->patchPkgconfPrefix(['oniguruma.pc']);
}
}

View File

@ -18,7 +18,6 @@ trait xz
{
UnixAutoconfExecutor::create($this)
->configure(
'--enable-pic',
'--disable-scripts',
'--disable-doc',
'--with-libiconv',

View File

@ -108,6 +108,7 @@ class UnixAutoconfExecutor extends Executor
'--enable-static',
"--prefix={$this->library->getBuildRootPath()}",
'--with-pic',
'--enable-pic',
];
}