mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-09 01:45:36 +08:00
Patch extension config.m4 files to use PKG_CHECK_MODULES_STATIC
This commit is contained in:
@@ -47,6 +47,8 @@ trait unix
|
|||||||
|
|
||||||
// let php m4 tools use static pkg-config
|
// let php m4 tools use static pkg-config
|
||||||
FileSystem::replaceFileStr("{$package->getSourceDir()}/build/php.m4", 'PKG_CHECK_MODULES(', 'PKG_CHECK_MODULES_STATIC(');
|
FileSystem::replaceFileStr("{$package->getSourceDir()}/build/php.m4", 'PKG_CHECK_MODULES(', 'PKG_CHECK_MODULES_STATIC(');
|
||||||
|
// also patch extension config.m4 files (they call PKG_CHECK_MODULES directly, not via php.m4)
|
||||||
|
shell()->cd($package->getSourceDir())->exec("grep -rl 'PKG_CHECK_MODULES(' ext/ | xargs sed -i 's/PKG_CHECK_MODULES(/PKG_CHECK_MODULES_STATIC(/g' || true");
|
||||||
}
|
}
|
||||||
|
|
||||||
#[Stage]
|
#[Stage]
|
||||||
|
|||||||
Reference in New Issue
Block a user