builder->makeAutoconfArgs(static::NAME, [ 'zlib' => null, 'openssl' => null, 'libxml2' => null, 'libev' => null, 'libcares' => null, 'libngtcp2' => null, 'libnghttp3' => null, 'libbpf' => null, 'libevent-openssl' => null, 'jansson' => null, 'jemalloc' => null, 'systemd' => null, ]); [,,$destdir] = SEPARATED_PATH; shell()->cd($this->source_dir) ->setEnv(['CFLAGS' => $this->getLibExtraCFlags(), 'LDFLAGS' => $this->getLibExtraLdFlags(), 'LIBS' => $this->getLibExtraLibs()]) ->execWithEnv( './configure ' . '--enable-static ' . '--disable-shared ' . '--with-pic ' . '--enable-lib-only ' . $args . ' ' . '--prefix=' ) ->execWithEnv('make clean') ->execWithEnv("make -j{$this->builder->concurrency}") ->execWithEnv("make install DESTDIR={$destdir}"); $this->patchPkgconfPrefix(['libnghttp2.pc']); } }