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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user