toolchain/ports: Use strip install targets

I just found that these exist. This is much cleaner than manually
stripping the executables!
This commit is contained in:
2025-06-28 17:47:20 +03:00
parent 463ce05da0
commit 2b2130ff42
3 changed files with 7 additions and 24 deletions

View File

@@ -4,6 +4,7 @@ NAME='binutils'
VERSION='2.44'
DOWNLOAD_URL="https://ftp.gnu.org/gnu/binutils/binutils-$VERSION.tar.gz#0cdd76777a0dfd3dd3a63f215f030208ddb91c2361d2bcc02acec0f1c16b6a2e"
DEPENDENCIES=('zlib')
MAKE_INSTALL_TARGETS=('install-strip')
CONFIGURE_OPTIONS=(
"--target=$BANAN_TOOLCHAIN_TRIPLE"
'--with-sysroot=/'
@@ -14,8 +15,3 @@ CONFIGURE_OPTIONS=(
'--disable-nls'
'--disable-werror'
)
build() {
make -j$(nproc) || exit 1
find . -type f -executable -exec $STRIP --strip-unneeded {} + 2>/dev/null
}