mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-18 09:15:23 +01:00
Rebuild musl 1.2.3 with support for dynamic linking
Now that GCC and binutils support musl's toolchain natively, musl can have its dynamic linking support enabled without ill-effects.
This commit is contained in:
parent
238520fee7
commit
9bde9d1afe
8 changed files with 50 additions and 4 deletions
1
sysc/musl-1.2.3/ld-musl-i386.path
Normal file
1
sysc/musl-1.2.3/ld-musl-i386.path
Normal file
|
|
@ -0,0 +1 @@
|
|||
/usr/lib/musl
|
||||
32
sysc/musl-1.2.3/musl-1.2.3.sh
Executable file
32
sysc/musl-1.2.3/musl-1.2.3.sh
Executable file
|
|
@ -0,0 +1,32 @@
|
|||
# SPDX-FileCopyrightText: 2022 Dor Askayo <dor.askayo@gmail.com>
|
||||
# SPDX-FileCopyrightText: 2022 Andrius Štikonas <andrius@stikonas.eu>
|
||||
#
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
urls="https://musl.libc.org/releases/musl-1.2.3.tar.gz"
|
||||
|
||||
src_configure() {
|
||||
./configure \
|
||||
--host=i386-unknown-linux-musl \
|
||||
--prefix="${PREFIX}" \
|
||||
--libdir="${PREFIX}/lib/musl" \
|
||||
--includedir="${PREFIX}/include/"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
make CROSS_COMPILE=
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
# Make dynamic linker symlink relative in ${PREFIX}/lib
|
||||
rm "${DESTDIR}/lib/ld-musl-i386.so.1"
|
||||
rmdir "${DESTDIR}/lib"
|
||||
mkdir -p "${DESTDIR}${PREFIX}/lib"
|
||||
ln -sr "${DESTDIR}${PREFIX}/lib/musl/libc.so" "${DESTDIR}${PREFIX}/lib/ld-musl-i386.so.1"
|
||||
|
||||
# Add library search path configurtion
|
||||
mkdir -p "${DESTDIR}/etc"
|
||||
cp ../../ld-musl-i386.path "${DESTDIR}/etc"
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue