mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-04 02:15:24 +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() {
|
||||
LDFLAGS="-static" ./configure \
|
||||
./configure \
|
||||
--prefix="${PREFIX}" \
|
||||
--libdir="${LIBDIR}" \
|
||||
--build="${TARGET}" \
|
||||
|
|
|
|||
|
|
@ -173,7 +173,6 @@ src_configure() {
|
|||
# For this GCC, we only build one stage, as extra is superfluous,
|
||||
# since we build GCC 12 straight after.
|
||||
CFLAGS="-std=gnu11" \
|
||||
LDFLAGS="-static" \
|
||||
../configure \
|
||||
--prefix="${PREFIX}" \
|
||||
--libdir="${LIBDIR}" \
|
||||
|
|
@ -181,7 +180,6 @@ src_configure() {
|
|||
--target="${TARGET}" \
|
||||
--host="${TARGET}" \
|
||||
--disable-bootstrap \
|
||||
--enable-static \
|
||||
--program-transform-name= \
|
||||
--enable-languages=c,c++ \
|
||||
--with-system-zlib \
|
||||
|
|
|
|||
|
|
@ -204,7 +204,6 @@ src_configure() {
|
|||
mkdir build
|
||||
cd build
|
||||
|
||||
LDFLAGS="-static" \
|
||||
../configure \
|
||||
--prefix="${PREFIX}" \
|
||||
--libdir="${LIBDIR}" \
|
||||
|
|
@ -212,7 +211,6 @@ src_configure() {
|
|||
--target="${TARGET}" \
|
||||
--host="${TARGET}" \
|
||||
--enable-bootstrap \
|
||||
--enable-static \
|
||||
--disable-plugins \
|
||||
--disable-libssp \
|
||||
--disable-libsanitizer \
|
||||
|
|
@ -224,5 +222,5 @@ src_configure() {
|
|||
}
|
||||
|
||||
src_compile() {
|
||||
make "${MAKEJOBS}" BOOT_LDFLAGS="-static"
|
||||
make "${MAKEJOBS}"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -185,6 +185,7 @@ src_configure() {
|
|||
--target="${TARGET}" \
|
||||
--host="${TARGET}" \
|
||||
--disable-shared \
|
||||
--disable-plugin \
|
||||
--program-transform-name= \
|
||||
--enable-languages=c,c++ \
|
||||
--disable-sjlj-exceptions \
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ src_configure() {
|
|||
--prefix="${PREFIX}" \
|
||||
--libdir="${LIBDIR}" \
|
||||
--build="${TARGET}" \
|
||||
--disable-shared \
|
||||
--enable-shared \
|
||||
--disable-jit
|
||||
popd
|
||||
done
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
pass1.sh
|
||||
pass3.sh
|
||||
|
|
@ -9,7 +9,9 @@ src_configure() {
|
|||
--host="${TARGET}" \
|
||||
--prefix="${PREFIX}" \
|
||||
--libdir="${LIBDIR}" \
|
||||
--includedir="${PREFIX}/include/"
|
||||
--includedir="${PREFIX}/include/" \
|
||||
--enable-static \
|
||||
--enable-shared
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
|
|
@ -23,12 +25,13 @@ src_install() {
|
|||
rm "${DESTDIR}/lib/ld-musl-i386.so.1"
|
||||
rmdir "${DESTDIR}/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
|
||||
# Expected by GCC 10+
|
||||
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
|
||||
|
||||
# Add symlink for ldd
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ src_prepare() {
|
|||
src_configure() {
|
||||
./config --prefix="${PREFIX}" \
|
||||
--libdir="${LIBDIR}" \
|
||||
no-shared linux-generic32
|
||||
linux-generic32
|
||||
}
|
||||
|
||||
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
|
||||
|
||||
src_configure() {
|
||||
./configure --prefix="${PREFIX}" --libdir="${LIBDIR}" --static
|
||||
./configure --prefix="${PREFIX}" --libdir="${LIBDIR}"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue