ports: Remove unneeded libtool files after install

This commit is contained in:
Bananymous 2025-07-22 10:32:52 +03:00
parent bc66e181a5
commit 418c3c9cfa
5 changed files with 31 additions and 0 deletions

View File

@ -15,3 +15,12 @@ CONFIGURE_OPTIONS=(
'--disable-nls' '--disable-nls'
'--disable-werror' '--disable-werror'
) )
post_install() {
# remove libtool files
rm -f $BANAN_SYSROOT/usr/lib/libbfd.la
rm -f $BANAN_SYSROOT/usr/lib/libctf.la
rm -f $BANAN_SYSROOT/usr/lib/libctf-nobfd.la
rm -f $BANAN_SYSROOT/usr/lib/libopcodes.la
rm -f $BANAN_SYSROOT/usr/lib/libsframe.la
}

View File

@ -17,3 +17,10 @@ CONFIGURE_OPTIONS=(
'--disable-nls' '--disable-nls'
'--enable-languages=c,c++' '--enable-languages=c,c++'
) )
post_install() {
# remove libtool files
rm -f $BANAN_SYSROOT/usr/lib/libstdc++.la
rm -f $BANAN_SYSROOT/usr/lib/libstdc++exp.la
rm -f $BANAN_SYSROOT/usr/lib/libsupc++.la
}

View File

@ -7,3 +7,8 @@ CONFIG_SUB=('configfsf.sub')
# configure does not work with (default) c23 # configure does not work with (default) c23
export CFLAGS="--std=c17 $CFLAGS" export CFLAGS="--std=c17 $CFLAGS"
post_install() {
# remove libtool file
rm -f $BANAN_SYSROOT/usr/lib/libgmp.la
}

View File

@ -9,3 +9,8 @@ CONFIGURE_OPTIONS=(
"--target=$BANAN_TOOLCHAIN_TRIPLE" "--target=$BANAN_TOOLCHAIN_TRIPLE"
"--with-sysroot=$BANAN_SYSROOT" "--with-sysroot=$BANAN_SYSROOT"
) )
post_install() {
# remove libtool file
rm -f $BANAN_SYSROOT/usr/lib/libmpc.la
}

View File

@ -9,3 +9,8 @@ CONFIGURE_OPTIONS=(
"--target=$BANAN_TOOLCHAIN_TRIPLE" "--target=$BANAN_TOOLCHAIN_TRIPLE"
'--with-sysroot=/' '--with-sysroot=/'
) )
post_install() {
# remove libtool file
rm -f $BANAN_SYSROOT/usr/lib/libmpfr.la
}