mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-14 15:25:23 +01:00
Build dynamic versions of musl, curl, openssl, zlib, libgcc & guile
This is required for the Guix bootstrap to work.
This commit is contained in:
parent
14937efcb2
commit
511dcaabf8
9 changed files with 13 additions and 13 deletions
|
|
@ -20,7 +20,7 @@ src_prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
src_configure() {
|
src_configure() {
|
||||||
LDFLAGS="-static" ./configure \
|
./configure \
|
||||||
--prefix="${PREFIX}" \
|
--prefix="${PREFIX}" \
|
||||||
--libdir="${LIBDIR}" \
|
--libdir="${LIBDIR}" \
|
||||||
--build="${TARGET}" \
|
--build="${TARGET}" \
|
||||||
|
|
|
||||||
|
|
@ -173,7 +173,6 @@ src_configure() {
|
||||||
# For this GCC, we only build one stage, as extra is superfluous,
|
# For this GCC, we only build one stage, as extra is superfluous,
|
||||||
# since we build GCC 12 straight after.
|
# since we build GCC 12 straight after.
|
||||||
CFLAGS="-std=gnu11" \
|
CFLAGS="-std=gnu11" \
|
||||||
LDFLAGS="-static" \
|
|
||||||
../configure \
|
../configure \
|
||||||
--prefix="${PREFIX}" \
|
--prefix="${PREFIX}" \
|
||||||
--libdir="${LIBDIR}" \
|
--libdir="${LIBDIR}" \
|
||||||
|
|
@ -181,7 +180,6 @@ src_configure() {
|
||||||
--target="${TARGET}" \
|
--target="${TARGET}" \
|
||||||
--host="${TARGET}" \
|
--host="${TARGET}" \
|
||||||
--disable-bootstrap \
|
--disable-bootstrap \
|
||||||
--enable-static \
|
|
||||||
--program-transform-name= \
|
--program-transform-name= \
|
||||||
--enable-languages=c,c++ \
|
--enable-languages=c,c++ \
|
||||||
--with-system-zlib \
|
--with-system-zlib \
|
||||||
|
|
|
||||||
|
|
@ -204,7 +204,6 @@ src_configure() {
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
|
|
||||||
LDFLAGS="-static" \
|
|
||||||
../configure \
|
../configure \
|
||||||
--prefix="${PREFIX}" \
|
--prefix="${PREFIX}" \
|
||||||
--libdir="${LIBDIR}" \
|
--libdir="${LIBDIR}" \
|
||||||
|
|
@ -212,7 +211,6 @@ src_configure() {
|
||||||
--target="${TARGET}" \
|
--target="${TARGET}" \
|
||||||
--host="${TARGET}" \
|
--host="${TARGET}" \
|
||||||
--enable-bootstrap \
|
--enable-bootstrap \
|
||||||
--enable-static \
|
|
||||||
--disable-plugins \
|
--disable-plugins \
|
||||||
--disable-libssp \
|
--disable-libssp \
|
||||||
--disable-libsanitizer \
|
--disable-libsanitizer \
|
||||||
|
|
@ -224,5 +222,5 @@ src_configure() {
|
||||||
}
|
}
|
||||||
|
|
||||||
src_compile() {
|
src_compile() {
|
||||||
make "${MAKEJOBS}" BOOT_LDFLAGS="-static"
|
make "${MAKEJOBS}"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -185,6 +185,7 @@ src_configure() {
|
||||||
--target="${TARGET}" \
|
--target="${TARGET}" \
|
||||||
--host="${TARGET}" \
|
--host="${TARGET}" \
|
||||||
--disable-shared \
|
--disable-shared \
|
||||||
|
--disable-plugin \
|
||||||
--program-transform-name= \
|
--program-transform-name= \
|
||||||
--enable-languages=c,c++ \
|
--enable-languages=c,c++ \
|
||||||
--disable-sjlj-exceptions \
|
--disable-sjlj-exceptions \
|
||||||
|
|
|
||||||
|
|
@ -56,7 +56,7 @@ src_configure() {
|
||||||
--prefix="${PREFIX}" \
|
--prefix="${PREFIX}" \
|
||||||
--libdir="${LIBDIR}" \
|
--libdir="${LIBDIR}" \
|
||||||
--build="${TARGET}" \
|
--build="${TARGET}" \
|
||||||
--disable-shared \
|
--enable-shared \
|
||||||
--disable-jit
|
--disable-jit
|
||||||
popd
|
popd
|
||||||
done
|
done
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
pass1.sh
|
pass3.sh
|
||||||
|
|
@ -9,7 +9,9 @@ src_configure() {
|
||||||
--host="${TARGET}" \
|
--host="${TARGET}" \
|
||||||
--prefix="${PREFIX}" \
|
--prefix="${PREFIX}" \
|
||||||
--libdir="${LIBDIR}" \
|
--libdir="${LIBDIR}" \
|
||||||
--includedir="${PREFIX}/include/"
|
--includedir="${PREFIX}/include/" \
|
||||||
|
--enable-static \
|
||||||
|
--enable-shared
|
||||||
}
|
}
|
||||||
|
|
||||||
src_compile() {
|
src_compile() {
|
||||||
|
|
@ -23,12 +25,13 @@ src_install() {
|
||||||
rm "${DESTDIR}/lib/ld-musl-i386.so.1"
|
rm "${DESTDIR}/lib/ld-musl-i386.so.1"
|
||||||
rmdir "${DESTDIR}/lib"
|
rmdir "${DESTDIR}/lib"
|
||||||
mkdir -p "${DESTDIR}${PREFIX}/lib"
|
mkdir -p "${DESTDIR}${PREFIX}/lib"
|
||||||
ln -sr "${DESTDIR}${LIBDIR}/libc.so" "${DESTDIR}${PREFIX}/lib/ld-musl-i386.so.1"
|
ln -s "i386-unknown-linux-musl/libc.so" "${DESTDIR}${PREFIX}/lib/ld-musl-i386.so.1"
|
||||||
|
ln -s "i386-unknown-linux-musl/libc.so" "${DESTDIR}${PREFIX}/lib/ld-linux.so.2"
|
||||||
|
|
||||||
# Make startup objects available in /usr/lib
|
# Make startup objects available in /usr/lib
|
||||||
# Expected by GCC 10+
|
# Expected by GCC 10+
|
||||||
for i in crt1.o crti.o crtn.o Scrt1.o rcrt1.o; do
|
for i in crt1.o crti.o crtn.o Scrt1.o rcrt1.o; do
|
||||||
ln -sr "${DESTDIR}${LIBDIR}/${i}" "${DESTDIR}${PREFIX}/lib/${i}"
|
ln -s "i386-unknown-linux-musl/${i}" "${DESTDIR}${PREFIX}/lib/${i}"
|
||||||
done
|
done
|
||||||
|
|
||||||
# Add symlink for ldd
|
# Add symlink for ldd
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ src_prepare() {
|
||||||
src_configure() {
|
src_configure() {
|
||||||
./config --prefix="${PREFIX}" \
|
./config --prefix="${PREFIX}" \
|
||||||
--libdir="${LIBDIR}" \
|
--libdir="${LIBDIR}" \
|
||||||
no-shared linux-generic32
|
linux-generic32
|
||||||
}
|
}
|
||||||
|
|
||||||
src_compile() {
|
src_compile() {
|
||||||
|
|
|
||||||
2
steps/zlib-1.2.13/pass1.sh
Executable file → Normal file
2
steps/zlib-1.2.13/pass1.sh
Executable file → Normal file
|
|
@ -3,5 +3,5 @@
|
||||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
src_configure() {
|
src_configure() {
|
||||||
./configure --prefix="${PREFIX}" --libdir="${LIBDIR}" --static
|
./configure --prefix="${PREFIX}" --libdir="${LIBDIR}"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue