debug_strip: use PKG_BUILD_FLAGS

This commit is contained in:
awiouy 2018-06-12 08:16:08 +02:00
parent b7a1c2c6aa
commit bd7ab2657f
2 changed files with 2 additions and 1 deletions

View File

@ -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
}

View File

@ -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
```