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,8 @@ NAME='gcc'
|
||||
VERSION='15.1.0'
|
||||
DOWNLOAD_URL="https://ftp.gnu.org/gnu/gcc/gcc-$VERSION/gcc-$VERSION.tar.gz#51b9919ea69c980d7a381db95d4be27edf73b21254eb13d752a08003b4d013b1"
|
||||
DEPENDENCIES=('binutils' 'gmp' 'mpfr' 'mpc')
|
||||
MAKE_BUILD_TARGETS=('all-gcc' 'all-target-libgcc' 'all-target-libstdc++-v3')
|
||||
MAKE_INSTALL_TARGETS=('install-strip-gcc' 'install-strip-target-libgcc' 'install-strip-target-libstdc++-v3')
|
||||
CONFIGURE_OPTIONS=(
|
||||
"--target=$BANAN_TOOLCHAIN_TRIPLE"
|
||||
'--with-sysroot=/'
|
||||
@@ -15,16 +17,3 @@ CONFIGURE_OPTIONS=(
|
||||
'--disable-nls'
|
||||
'--enable-languages=c,c++'
|
||||
)
|
||||
|
||||
build() {
|
||||
make -j$(nproc) all-gcc || exit 1
|
||||
make -j$(nproc) all-target-libgcc || exit 1
|
||||
make -j$(nproc) all-target-libstdc++-v3 || exit 1
|
||||
find . -type f -executable -exec strip --strip-unneeded {} + 2>/dev/null
|
||||
}
|
||||
|
||||
install() {
|
||||
make install-gcc DESTDIR="$BANAN_SYSROOT" || exit 1
|
||||
make install-target-libgcc DESTDIR="$BANAN_SYSROOT" || exit 1
|
||||
make install-target-libstdc++-v3 DESTDIR="$BANAN_SYSROOT" || exit 1
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user