getDependencies() as $dep) { if ($dep instanceof LinuxLibraryBase) { $required_libs .= ' ' . $dep->getStaticLibFiles(); } } shell()->cd($this->source_dir)->initializeEnv($this) ->appendEnv([ 'CFLAGS' => "-I{$this->getIncludeDir()}", 'LDFLAGS' => "-L{$this->getLibDir()}", 'LIBS' => "{$required_libs} -lstdc++", ]) ->exec( "{$this->builder->getOption('library_path')} " . "{$this->builder->getOption('ld_library_path')} " . './configure ' . '--enable-static --disable-shared ' . '--with-pic ' . '--without-python ' . '--without-mem-debug ' . '--without-crypto ' . '--without-debug ' . '--without-debugger ' . '--with-libxml-prefix=' . escapeshellarg(BUILD_ROOT_PATH) . ' ' . '--prefix=' ) ->exec('make clean') ->exec("make -j{$this->builder->concurrency}") ->exec('make install DESTDIR=' . escapeshellarg(BUILD_ROOT_PATH)); $this->patchPkgconfPrefix(['libexslt.pc']); $this->patchLaDependencyPrefix(['libxslt.la', 'libexslt.la']); shell()->cd(BUILD_LIB_PATH) ->exec("ar -t libxslt.a | grep '\\.a$' | xargs -n1 ar d libxslt.a") ->exec("ar -t libexslt.a | grep '\\.a$' | xargs -n1 ar d libexslt.a"); } }