mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-02 01:18:08 +01:00
The Linux kernel is already built with CONFIG_M686=y, which suggests that the bootstrap is not supported on anything older thant i686. So, use i686 on userspace too. Some software, such as gettext, cmake or elfutils, has trouble building for i386 due to missing atomic intrinsics. For example, building gettext 0.26 would fail with: ``` /usr/lib/i386-unknown-linux-musl/gcc/i386-unknown-linux-musl/13.3.0/../../../../../i386-unknown-linux-musl/bin/ld: /build/gettext-0.26_1/gettext-0.26/build/gettext-tools/gnulib-lib/.libs/libgettextlib.so: undefined reference to `__atomic_compare_exchange_4' ```
50 lines
1.4 KiB
Bash
Executable file
50 lines
1.4 KiB
Bash
Executable file
# SPDX-FileCopyrightText: 2022 Dor Askayo <dor.askayo@gmail.com>
|
|
# SPDX-FileCopyrightText: 2021 Andrius Štikonas <andrius@stikonas.eu>
|
|
# SPDX-FileCopyrightText: 2022 fosslinux <fosslinux@aussies.space>
|
|
#
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
|
src_prepare() {
|
|
default
|
|
|
|
rm -f build-aux/ltmain.sh
|
|
rm -f doc/*.info doc/*.1
|
|
rm -f bootstrap
|
|
rm -f tests/testsuite
|
|
|
|
../../import-gnulib.sh
|
|
|
|
LIBTOOLIZE=true AUTOPOINT=true ../../bootstrap-helper.sh
|
|
|
|
LIBTOOLIZE=true AUTOPOINT=true AUTOMAKE=automake-1.15 ACLOCAL=aclocal-1.15 AUTOCONF=autoconf-2.69 AUTOHEADER=autoheader-2.69 autoreconf-2.69 -fi
|
|
LIBTOOLIZE=true AUTOPOINT=true AUTOMAKE=automake-1.15 ACLOCAL=aclocal-1.15 AUTOCONF=autoconf-2.69 AUTOHEADER=autoheader-2.69 autoreconf-2.69 -fi libltdl
|
|
}
|
|
|
|
src_configure() {
|
|
./configure \
|
|
--prefix="${PREFIX}" \
|
|
--libdir="${LIBDIR}" \
|
|
--disable-shared \
|
|
--host="${TARGET}" \
|
|
--target="${TARGET}" \
|
|
--build="${TARGET}" \
|
|
ac_path_EGREP="egrep" \
|
|
ac_path_FGREP="fgrep" \
|
|
ac_path_GREP="grep" \
|
|
ac_path_SED="sed"
|
|
}
|
|
|
|
src_compile() {
|
|
make "${MAKEJOBS}" AUTOM4TE=autom4te-2.69 MAKEINFO=true
|
|
}
|
|
|
|
src_install() {
|
|
make install MAKEINFO=true DESTDIR="${DESTDIR}"
|
|
|
|
sed -i -e "s/{EGREP=.*/{EGREP='egrep'}/" \
|
|
-e "s/{FGREP=.*/{FREGP='fgrep'}/" \
|
|
-e "s/{GREP=.*/{GREP='grep'}/" \
|
|
-e "s/{SED=.*/{SED='sed'}/" \
|
|
"${DESTDIR}/usr/bin/libtool"
|
|
}
|