optionalLib('ncurses', "--with-libncurses-prefix={$this->getBuildRootPath()}") ->optionalLib('libxml2', "--with-libxml2-prefix={$this->getBuildRootPath()}") ->addConfigureArgs( '--disable-java', '--disable-c++', '--with-included-gettext', "--with-iconv-prefix={$this->getBuildRootPath()}", ); // zts if ($this->builder->getOption('enable-zts')) { $autoconf->addConfigureArgs('--enable-threads=isoc+posix') ->appendEnv([ 'CFLAGS' => '-lpthread -D_REENTRANT', 'LDFLGAS' => '-lpthread', ]); } else { $autoconf->addConfigureArgs('--disable-threads'); } $autoconf->configure()->make(); $this->patchLaDependencyPrefix(); } }