install headers and modules from shared extensions

This commit is contained in:
henderkes
2025-05-18 12:53:49 +07:00
parent 1fbd2c1adc
commit bdd764218b
2 changed files with 12 additions and 2 deletions

View File

@@ -319,10 +319,10 @@ class Extension
->execWithEnv(BUILD_BIN_PATH . '/phpize')
->execWithEnv('./configure ' . $this->getUnixConfigureArg(true) . ' --with-php-config=' . BUILD_BIN_PATH . '/php-config --enable-shared --disable-static')
->execWithEnv('make clean')
->execWithEnv('make -j' . $this->builder->concurrency);
->execWithEnv('make -j' . $this->builder->concurrency)
->execWithEnv('make install');
// copy shared library
FileSystem::createDir(BUILD_MODULES_PATH);
$extensionDirFile = (getenv('EXTENSION_DIR') ?: $this->source_dir . '/modules') . '/' . $this->getName() . '.so';
$sourceDirFile = $this->source_dir . '/modules/' . $this->getName() . '.so';
if (file_exists($extensionDirFile)) {