BuildSystem: Automatically delete libtool files

Half of the ports had a manual post_install step to delete libtool files
this is now done automatically and there is no need for it!

Libtool files have to be deleted as libtool doesn't work while
cross-compiling (at least out of the box)
This commit is contained in:
Bananymous 2025-11-13 20:37:10 +02:00
parent 2bf7c67767
commit 2dd8b76289
19 changed files with 1 additions and 105 deletions

View File

@ -22,12 +22,3 @@ pre_configure() {
unset PKG_CONFIG_LIBDIR unset PKG_CONFIG_LIBDIR
unset PKG_CONFIG_PATH unset PKG_CONFIG_PATH
} }
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

@ -18,8 +18,3 @@ CONFIGURE_OPTIONS=(
'--with-ca-bundle=/etc/ssl/certs/ca-certificates.crt' '--with-ca-bundle=/etc/ssl/certs/ca-certificates.crt'
'--without-ca-path' '--without-ca-path'
) )
post_install() {
# remove libtool file
rm -f $BANAN_SYSROOT/usr/lib/libcurl.la
}

View File

@ -4,8 +4,3 @@ NAME='expat'
VERSION='2.7.1' VERSION='2.7.1'
DOWNLOAD_URL="https://github.com/libexpat/libexpat/releases/download/R_2_7_1/expat-$VERSION.tar.gz#0cce2e6e69b327fc607b8ff264f4b66bdf71ead55a87ffd5f3143f535f15cfa2" DOWNLOAD_URL="https://github.com/libexpat/libexpat/releases/download/R_2_7_1/expat-$VERSION.tar.gz#0cce2e6e69b327fc607b8ff264f4b66bdf71ead55a87ffd5f3143f535f15cfa2"
CONFIG_SUB=('conftools/config.sub') CONFIG_SUB=('conftools/config.sub')
post_install() {
# remove libtool file
rm -f $BANAN_SYSROOT/usr/lib/libexpat.la
}

View File

@ -5,12 +5,6 @@ VERSION='2.13.3'
DOWNLOAD_URL="https://download.savannah.gnu.org/releases/freetype/freetype-$VERSION.tar.gz#5c3a8e78f7b24c20b25b54ee575d6daa40007a5f4eea2845861c3409b3021747" DOWNLOAD_URL="https://download.savannah.gnu.org/releases/freetype/freetype-$VERSION.tar.gz#5c3a8e78f7b24c20b25b54ee575d6daa40007a5f4eea2845861c3409b3021747"
DEPENDENCIES=('zlib' 'libpng') DEPENDENCIES=('zlib' 'libpng')
CONFIG_SUB=('builds/unix/config.sub') CONFIG_SUB=('builds/unix/config.sub')
CONFIGURE_OPTIONS=( CONFIGURE_OPTIONS=(
'lt_cv_deplibs_check_method=pass_all' 'lt_cv_deplibs_check_method=pass_all'
) )
post_install() {
# remove libtool file
rm -f $BANAN_SYSROOT/usr/lib/libfreetype.la
}

View File

@ -27,10 +27,3 @@ build() {
make -j$(nproc) all-target-libgcc CFLAGS_FOR_TARGET="$xcflags" || exit 1 make -j$(nproc) all-target-libgcc CFLAGS_FOR_TARGET="$xcflags" || exit 1
make -j$(nproc) all-target-libstdc++-v3 || exit 1 make -j$(nproc) all-target-libstdc++-v3 || exit 1
} }
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,8 +7,3 @@ CONFIG_SUB=('configfsf.sub')
CONFIGURE_OPTIONS=( CONFIGURE_OPTIONS=(
'CFLAGS=-std=c17' 'CFLAGS=-std=c17'
) )
post_install() {
# remove libtool file
rm -f $BANAN_SYSROOT/usr/lib/libgmp.la
}

View File

@ -254,3 +254,4 @@ pre_install
install install
grep -qsxF "$NAME-$VERSION" "$installed_file" || echo "$NAME-$VERSION" >> "$installed_file" grep -qsxF "$NAME-$VERSION" "$installed_file" || echo "$NAME-$VERSION" >> "$installed_file"
post_install post_install
find "$BANAN_SYSROOT/usr/lib" -name '*.la' -delete

View File

@ -4,8 +4,3 @@ NAME='libffi'
VERSION='3.5.2' VERSION='3.5.2'
DOWNLOAD_URL="https://github.com/libffi/libffi/releases/download/v$VERSION/libffi-$VERSION.tar.gz#f3a3082a23b37c293a4fcd1053147b371f2ff91fa7ea1b2a52e335676bac82dc" DOWNLOAD_URL="https://github.com/libffi/libffi/releases/download/v$VERSION/libffi-$VERSION.tar.gz#f3a3082a23b37c293a4fcd1053147b371f2ff91fa7ea1b2a52e335676bac82dc"
CONFIG_SUB=('config.sub') CONFIG_SUB=('config.sub')
post_install() {
# remove libtool file
rm -f $BANAN_SYSROOT/usr/lib/libffi.la
}

View File

@ -12,9 +12,3 @@ CONFIGURE_OPTIONS=(
pre_configure() { pre_configure() {
echo '#include_next <sys/types.h>' > srclib/sys_types.in.h echo '#include_next <sys/types.h>' > srclib/sys_types.in.h
} }
post_install() {
# remove libtool file
rm -f $BANAN_SYSROOT/usr/lib/libcharset.la
rm -f $BANAN_SYSROOT/usr/lib/libiconv.la
}

View File

@ -5,8 +5,3 @@ VERSION='9f'
DOWNLOAD_URL="https://www.ijg.org/files/jpegsrc.v9f.tar.gz#04705c110cb2469caa79fb71fba3d7bf834914706e9641a4589485c1f832565b" DOWNLOAD_URL="https://www.ijg.org/files/jpegsrc.v9f.tar.gz#04705c110cb2469caa79fb71fba3d7bf834914706e9641a4589485c1f832565b"
TAR_CONTENT="jpeg-$VERSION" TAR_CONTENT="jpeg-$VERSION"
CONFIG_SUB=('config.sub') CONFIG_SUB=('config.sub')
post_install() {
# remove libtool files
rm -f $BANAN_SYSROOT/usr/lib/libjpeg.la
}

View File

@ -4,8 +4,3 @@ NAME='libogg'
VERSION='1.3.6' VERSION='1.3.6'
DOWNLOAD_URL="https://github.com/xiph/ogg/releases/download/v$VERSION/libogg-$VERSION.tar.gz#83e6704730683d004d20e21b8f7f55dcb3383cdf84c0daedf30bde175f774638" DOWNLOAD_URL="https://github.com/xiph/ogg/releases/download/v$VERSION/libogg-$VERSION.tar.gz#83e6704730683d004d20e21b8f7f55dcb3383cdf84c0daedf30bde175f774638"
CONFIG_SUB=('config.sub') CONFIG_SUB=('config.sub')
post_install() {
# remove libtool file
rm -f $BANAN_SYSROOT/usr/lib/libogg.la
}

View File

@ -5,9 +5,3 @@ VERSION='1.6.48'
DOWNLOAD_URL="https://download.sourceforge.net/libpng/libpng-$VERSION.tar.gz#68f3d83a79d81dfcb0a439d62b411aa257bb4973d7c67cd1ff8bdf8d011538cd" DOWNLOAD_URL="https://download.sourceforge.net/libpng/libpng-$VERSION.tar.gz#68f3d83a79d81dfcb0a439d62b411aa257bb4973d7c67cd1ff8bdf8d011538cd"
DEPENDENCIES=('zlib') DEPENDENCIES=('zlib')
CONFIG_SUB=('config.sub') CONFIG_SUB=('config.sub')
post_install() {
# remove libtool files
rm -f $BANAN_SYSROOT/usr/lib/libpng.la
rm -f $BANAN_SYSROOT/usr/lib/libpng16.la
}

View File

@ -8,8 +8,3 @@ CONFIG_SUB=('build-aux/config.sub')
CONFIGURE_OPTIONS=( CONFIGURE_OPTIONS=(
'CFLAGS=-std=c11' 'CFLAGS=-std=c11'
) )
post_install() {
# remove libtool file
rm -f $BANAN_SYSROOT/usr/lib/libsndfile.la
}

View File

@ -6,9 +6,3 @@ DOWNLOAD_URL="https://download.osgeo.org/libtiff/tiff-$VERSION.tar.gz#67160e3457
TAR_CONTENT="tiff-$VERSION" TAR_CONTENT="tiff-$VERSION"
DEPENDENCIES=('zlib' 'zstd' 'libjpeg') DEPENDENCIES=('zlib' 'zstd' 'libjpeg')
CONFIG_SUB=('config/config.sub') CONFIG_SUB=('config/config.sub')
post_install() {
# remove libtool files
rm -f $BANAN_SYSROOT/usr/lib/libtiff.la
rm -f $BANAN_SYSROOT/usr/lib/libtiffxx.la
}

View File

@ -5,10 +5,3 @@ VERSION='1.3.7'
DOWNLOAD_URL="https://github.com/xiph/vorbis/releases/download/v$VERSION/libvorbis-$VERSION.tar.gz#0e982409a9c3fc82ee06e08205b1355e5c6aa4c36bca58146ef399621b0ce5ab" DOWNLOAD_URL="https://github.com/xiph/vorbis/releases/download/v$VERSION/libvorbis-$VERSION.tar.gz#0e982409a9c3fc82ee06e08205b1355e5c6aa4c36bca58146ef399621b0ce5ab"
DEPENDENCIES=('libogg') DEPENDENCIES=('libogg')
CONFIG_SUB=('config.sub') CONFIG_SUB=('config.sub')
post_install() {
# remove libtool files
rm -f $BANAN_SYSROOT/usr/lib/libvorbis.la
rm -f $BANAN_SYSROOT/usr/lib/libvorbisenc.la
rm -f $BANAN_SYSROOT/usr/lib/libvorbisfile.la
}

View File

@ -9,10 +9,3 @@ CONFIGURE_OPTIONS=(
"--with-pngincludedir=$BANAN_SYSROOT/usr/include" "--with-pngincludedir=$BANAN_SYSROOT/usr/include"
"--with-pnglibdir=$BANAN_SYSROOT/usr/lib" "--with-pnglibdir=$BANAN_SYSROOT/usr/lib"
) )
post_install() {
# remove libtool files
rm -f $BANAN_SYSROOT/usr/lib/libwebp.la
rm -f $BANAN_SYSROOT/usr/lib/libwebpdemux.la
rm -f $BANAN_SYSROOT/usr/lib/libwebpmux.la
}

View File

@ -9,8 +9,3 @@ 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,8 +9,3 @@ 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
}

View File

@ -4,9 +4,3 @@ NAME='pcre2'
VERSION='10.45' VERSION='10.45'
DOWNLOAD_URL="https://github.com/PCRE2Project/pcre2/releases/download/pcre2-$VERSION/pcre2-$VERSION.tar.gz#0e138387df7835d7403b8351e2226c1377da804e0737db0e071b48f07c9d12ee" DOWNLOAD_URL="https://github.com/PCRE2Project/pcre2/releases/download/pcre2-$VERSION/pcre2-$VERSION.tar.gz#0e138387df7835d7403b8351e2226c1377da804e0737db0e071b48f07c9d12ee"
CONFIG_SUB=('config.sub') CONFIG_SUB=('config.sub')
post_install() {
# remove libtool files
rm -f $BANAN_SYSROOT/usr/lib/libpcre2-8.la
rm -f $BANAN_SYSROOT/usr/lib/libpcre2-posix.la
}