diff --git a/parts.rst b/parts.rst index 2d5f1b7..254b951 100644 --- a/parts.rst +++ b/parts.rst @@ -419,6 +419,11 @@ In particular we can now use full featured ``ar`` instead of ``tcc -ar``, the GNU linker ``ld``, which allows us building shared libraries, and the GNU assembler ``as``. +libtool 1.4 +=========== + +Rebuild libtool, so that it uses GNU binutils when creating shared libraries. + musl 1.1.24 (v3) ================ diff --git a/sysa/libtool-1.4/checksums/pass2 b/sysa/libtool-1.4/checksums/pass2 new file mode 100644 index 0000000..92ab87c --- /dev/null +++ b/sysa/libtool-1.4/checksums/pass2 @@ -0,0 +1,2 @@ +23a6e91bff3d5bac9b0317b60bd1c999f94846f62085bf4d227dfa8499120d22 /after/lib/musl/libltdl.a +c247c7c1516ed35414c8b038535969a67ce4bbfd2abdfed85a89941bca09d55d /after/lib/musl/libltdl.la diff --git a/sysa/libtool-1.4/pass2.sh b/sysa/libtool-1.4/pass2.sh new file mode 100755 index 0000000..d7ed680 --- /dev/null +++ b/sysa/libtool-1.4/pass2.sh @@ -0,0 +1,19 @@ +# SPDX-FileCopyrightText: 2021 Andrius Štikonas +# +# SPDX-License-Identifier: GPL-3.0-or-later + +src_prepare() { + default_src_prepare + + AUTOCONF=autoconf-2.13 AUTOHEADER=autoheader-2.13 ACLOCAL=aclocal-1.4 AUTOMAKE=automake-1.4 ./bootstrap +} + +src_configure() { + CC=tcc ./configure \ + --prefix="${PREFIX}" \ + --libdir="${PREFIX}/lib/musl" \ + --disable-shared \ + --host=i386-unknown-linux \ + --target=i386-unknown-linux \ + --build=i386-unknown-linux +} diff --git a/sysa/run.sh b/sysa/run.sh index e535ba2..9f0707d 100755 --- a/sysa/run.sh +++ b/sysa/run.sh @@ -89,6 +89,8 @@ build libtool-1.4 pass1.sh checksums/pass1 build binutils-2.14 +build libtool-1.4 pass2.sh checksums/pass2 + # Build musl with fewer patches build musl-1.1.24 binutils-rebuild.sh checksums/pass3 patches-pass3 populate_device_nodes