Merge pull request #2771 from awiouy/90-strip

debug_strip: use strip in PKG_BUILD_FLAGS
This commit is contained in:
MilhouseVH
2018-06-12 18:54:52 +01:00
committed by GitHub
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
```