ladybird/Ports/libiconv/package.sh
Gunnar Beutner bd43530750 Ports: Make sure to remove the .la file after building libiconv
Otherwise libtool gets confused and tries to link against files that
don't exist.
2021-08-14 12:40:49 +02:00

13 lines
679 B
Bash
Executable file

#!/usr/bin/env -S bash ../.port_include.sh
port=libiconv
version=1.16
useconfigure=true
configopts="--enable-shared --disable-nls"
files="https://ftpmirror.gnu.org/gnu/libiconv/libiconv-${version}.tar.gz libiconv-${version}.tar.gz e6a1b1b589654277ee790cce3734f07876ac4ccfaecbee8afa0b649cf529cc04"
auth_type="sha256"
install() {
run make DESTDIR=${SERENITY_INSTALL_ROOT} $installopts install
run ${SERENITY_ARCH}-pc-serenity-gcc -shared -o ${SERENITY_INSTALL_ROOT}/usr/local/lib/libiconv.so -Wl,-soname,libiconv.so -Wl,--whole-archive ${SERENITY_INSTALL_ROOT}/usr/local/lib/libiconv.a -Wl,--no-whole-archive
rm -f ${SERENITY_INSTALL_ROOT}/usr/local/lib/libiconv.la
}