Skip to content

strip --strip-all must be conditional when php was (re)compiled with --enable-debug #1268

@mvorisek

Description

@mvorisek

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    RequestRequest for image modification or feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions