diff --git a/config/functions b/config/functions index 6d2b75f63f..18d0eddb63 100644 --- a/config/functions +++ b/config/functions @@ -912,7 +912,7 @@ debug_strip() { exit 1 fi - if [ "${BUILD_WITH_DEBUG}" != "yes" ]; then + if [ "${BUILD_WITH_DEBUG}" != "yes" ] && flag_enabled "strip" "yes"; then find $* -type f -executable | xargs $STRIP 2>/dev/null || : fi } diff --git a/packages/readme.md b/packages/readme.md index 2ba73b4676..47bcab8446 100644 --- a/packages/readme.md +++ b/packages/readme.md @@ -124,6 +124,7 @@ Set the variable `PKG_BUILD_FLAGS` in the `package.mk` to enable/disable the sin | lto-off | disabled | target/init | explicitly disable LTO in the compiler and linker | | gold | depend on `GOLD_SUPPORT` | target/init | can only disabled, use of the GOLD-Linker | | parallel | enabled | all | `make` or `ninja` builds with multiple threads/processes (or not) | +| strip | enabled | target | strips executables (or not) | ###### Example ```