Skip to content
This repository has been archived by the owner on Sep 2, 2023. It is now read-only.

Commit

Permalink
build.sh: Silence errors when stripping binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
mbitsnbites committed Nov 27, 2021
1 parent f9872a3 commit 77ae159
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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!"
Expand Down

0 comments on commit 77ae159

Please sign in to comment.