This is a feature request.
|
find modules \ |
|
-maxdepth 1 \ |
|
-name '*.so' \ |
|
-exec sh -euxc ' \ |
|
strip --strip-all "$@" || : |
|
' -- '{}' + |
should be wrapped in a condition to check if php was configured /wo debug mode
for debug mode, no symbols should be stripped
as a temporary solution sed -zE 's~[^\n]+find modules[^\n]+\n[^\n]+-maxdepth[^\n]+\n[^\n]+-name[^\n]+\n[^\n]+-exec[^\n]+\n[^\n]+strip --strip-all[^\n]+\n[^\n]+\{\}[^\n]+\n~~' can be used, but native support/condition is highly appreciated