builder->cc}' " . "CXX='{$this->builder->cxx}' " . "CFLAGS='{$this->builder->arch_c_flags} -Wimplicit-function-declaration' "; $linux_env = 'PKG_CONFIG_PATH="' . BUILD_LIB_PATH . '/pkgconfig" ' . "CC='{$this->builder->cc}' " . "CXX='{$this->builder->cxx}' "; $extra = match (PHP_OS_FAMILY) { 'Darwin' => '', default => '--with-internal-glib ', }; shell()->cd($this->source_dir) ->exec( match (PHP_OS_FAMILY) { 'Darwin' => $macos_env, default => $linux_env, } . './configure ' . '--disable-shared ' . '--enable-static ' . $extra . '--prefix=' . BUILD_ROOT_PATH . ' ' . '--without-sysroot ' . '--without-system-include-path ' . '--without-system-library-path ' . '--without-pc-path' ) ->exec('make clean') ->exec("make -j{$this->builder->concurrency}") ->exec('make install'); } }