Nimbin[12]?Mirrors & Forks / jhalfs / commits / d18fc24

jhalfs git · trunk

jhalfs LFS build automation (mirror)

lfs mirror bash · first commit 2005-09-11 · last commit 2024-02-13 (2 years ago) · synced 3 days ago · upstream: git.linuxfromscratch.org/jhalfs

Python 78.4% Shell 19.8% Makefile 1.8%
git clone https://git.christianimmanuel.de/mirrors-forks/jhalfs.gitwget https://git.christianimmanuel.de/mirrors-forks/jhalfs/archive/jhalfs.tar.gz

blfs tools: update JOBS for the new config

Pierre Labastie · 2023-11-17 12:57 · d18fc24d5be19579426b6da1f5db75beb3d9a6da

Now, we have ALL_CORES set to y or n, and depending on this,
we want either JOBS to be set to $(nproc) or to the value
of N_PARALLEL.
 common/libs/func_install_blfs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/common/libs/func_install_blfs b/common/libs/func_install_blfs
index 8a87b1b..4261932 100644
--- a/common/libs/func_install_blfs
+++ b/common/libs/func_install_blfs
@@ -136,7 +136,7 @@ STATS=n
 SRC_ARCHIVE=/sources
 BUILD_ROOT=/sources
 BUILD_SUBDIRS=y
-JOBS=$(if [ -n "$N_PARALLEL" ]; then echo $N_PARALLEL; else echo 1; fi)
+JOBS=$(if [ "$ALL_CORES" = y ]; then nproc; else echo $N_PARALLEL; fi)
 EOF
 for OPT_VAR in CFLAGS CXXFLAGS LDFLAGS; do
   eval optVal=\$${OPT_VAR}_$DEF_OPT_MODE