mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-16 08:15:24 +01:00
Introduce parallelism
By using --cores argument to rootfs.py, JOBS= is set in the
live-bootstrap environment, and -j${JOBS} is used on builds. This speeds
larger packages up significantly.
A fair number of packages do not build properly with parallelism. Most
of these, at least for now, are disabled with -j1.
This commit is contained in:
parent
f2a0d74bfb
commit
d98f97e214
74 changed files with 146 additions and 95 deletions
|
|
@ -125,15 +125,15 @@ src_compile() {
|
|||
ln -s . build/build-i386-unknown-linux-musl
|
||||
for dir in libiberty libcpp libdecnumber gcc; do
|
||||
# We have makeinfo now but it is not happy with gcc .info files, so skip it
|
||||
make -C build/$dir LIBGCC2_INCLUDES=-I"${PREFIX}/include" \
|
||||
make "${MAKEJOBS}" -C build/$dir LIBGCC2_INCLUDES=-I"${PREFIX}/include" \
|
||||
STMP_FIXINC= GMPLIBS="-lmpc -lmpfr -lgmp" MAKEINFO=true
|
||||
done
|
||||
|
||||
# host_subdir is necessary because we have slightly different build directory layout
|
||||
make -C build/libgcc PATH="${PATH}:../gcc" CC=../gcc/xgcc \
|
||||
make "${MAKEJOBS}" -C build/libgcc PATH="${PATH}:../gcc" CC=../gcc/xgcc \
|
||||
host_subdir=build CFLAGS="-I../gcc/include -I/${PREFIX}/include"
|
||||
|
||||
make -C build/libstdc++-v3 PATH="${PATH}:${PWD}/build/gcc" \
|
||||
make "${MAKEJOBS}" -C build/libstdc++-v3 PATH="${PATH}:${PWD}/build/gcc" \
|
||||
CXXFLAGS="-I${PWD}/build/gcc/include -I ${PREFIX}/include"
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue