mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 04:44:53 +08:00
Patch extension config.m4 files to use PKG_CHECK_MODULES_STATIC
This commit is contained in:
parent
780232fa60
commit
07fd1bcd03
@ -47,6 +47,8 @@ trait unix
|
||||
|
||||
// let php m4 tools use static pkg-config
|
||||
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]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user