builder->makeAutoconfArgs(static::NAME, [ 'zlib' => null, 'openssl' => null, 'libxml2' => null, 'libev' => null, 'jemalloc' => null, ]); 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=' . BUILD_ROOT_PATH); $this->patchPkgconfPrefix(['libngtcp2.pc']); } }