getSourceDir()}/configure", 'realpath -s', 'realpath'); return true; } return false; } #[BuildFor('Linux')] public function buildLinux(ToolchainInterface $toolchain): void { $use_libc = !$toolchain instanceof GccNativeToolchain || version_compare(SystemTarget::getLibcVersion(), '2.30', '>='); $make = UnixAutoconfExecutor::create($this); if ($use_libc) { $make->appendEnv([ 'CFLAGS' => '-D_GNU_SOURCE', ]); } $make ->removeConfigureArgs( '--disable-shared', '--enable-static', '--with-pic', '--enable-pic', ) ->addConfigureArgs( $use_libc ? '--use-libc' : '', ) ->configure() ->make('library ENABLE_SHARED=0', 'install ENABLE_SHARED=0', with_clean: false); $this->patchPkgconfPrefix(); } }