cd($this->source_dir) ->setEnv([ 'CFLAGS' => trim('-I' . BUILD_INCLUDE_PATH . ' ' . $this->getLibExtraCFlags()), 'LDFLAGS' => trim('-L' . BUILD_LIB_PATH . ' ' . $this->getLibExtraLdFlags()), 'LIBS' => $this->getLibExtraLibs(), ]) ->execWithEnv('libtoolize --force --copy') ->execWithEnv('./autogen.sh || autoreconf -if') ->execWithEnv('./configure --prefix= --enable-static --disable-shared --disable-tests --disable-nls') ->execWithEnv("make -j {$this->builder->concurrency}") ->exec('make install DESTDIR=' . BUILD_ROOT_PATH); $this->patchPkgconfPrefix(['libacl.pc'], PKGCONF_PATCH_PREFIX); } }