diff --git a/build.sh b/build.sh index ed7b27f..9f19036 100755 --- a/build.sh +++ b/build.sh @@ -259,13 +259,13 @@ fi # Strip binaries. echo "Stripping binaries..." -find "${PREFIX}/bin" -executable -type f -exec strip {} \; -find "${PREFIX}/libexec/gcc" -name 'cc1*' -executable -type f -exec strip {} \; -find "${PREFIX}/libexec/gcc" -name 'lto-wrapper' -executable -type f -exec strip {} \; -find "${PREFIX}/libexec/gcc" -name 'collect2' -executable -type f -exec strip {} \; -find "${PREFIX}/libexec/gcc" -name 'd21' -executable -type f -exec strip {} \; -find "${PREFIX}/libexec/gcc" -name 'lto1' -executable -type f -exec strip {} \; -find "${PREFIX}/${TARGET}/bin" -executable -type f -exec strip {} \; +find "${PREFIX}/bin" -executable -type f -exec strip {} \; 2>/dev/null || true +find "${PREFIX}/libexec/gcc" -name 'cc1*' -executable -type f -exec strip {} \; 2>/dev/null || true +find "${PREFIX}/libexec/gcc" -name 'lto-wrapper*' -executable -type f -exec strip {} \; 2>/dev/null || true +find "${PREFIX}/libexec/gcc" -name 'collect2*' -executable -type f -exec strip {} \; 2>/dev/null || true +find "${PREFIX}/libexec/gcc" -name 'd21*' -executable -type f -exec strip {} \; 2>/dev/null || true +find "${PREFIX}/libexec/gcc" -name 'lto1*' -executable -type f -exec strip {} \; 2>/dev/null || true +find "${PREFIX}/${TARGET}/bin" -executable -type f -exec strip {} \; 2>/dev/null || true echo "" echo "Build and installation finished succesfully!"