[jhalfs] 01/03: optimize_functions: change wrt_makeflags parameters

"Git Owner" ([email protected] via alfs-discuss Mailing List) <[email protected]>
Newsgroups gmane.linux.lfs.automated
Message-ID <[email protected]>
This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch trunk
in repository jhalfs.

commit 86debb00ea76de32d9e5adc3651a6d27d184e017
Author: Pierre Labastie <[email protected]>
AuthorDate: Sat May 7 19:07:15 2022 +0200

    optimize_functions: change wrt_makeflags parameters
    
    In order to be able to pass NINJAJOBS=1 when optimize is 0, we
    add two paramters to this function. The three parameters are
    then:
    - the name of the package (tested against opt_override)
    - MAKEFLAGS for this package
    - NINJAJOBS for this package
---
 optimize/optimize_functions | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)

diff --git a/optimize/optimize_functions b/optimize/optimize_functions
index 5960241..26d5043 100644
--- a/optimize/optimize_functions
+++ b/optimize/optimize_functions
@@ -70,19 +70,18 @@ EOF
 wrt_makeflags() {                  # Apply MAKEFLAGS to build
 #----------------------------------#
   local pkg=$1
-  local MKF
+  local MKF=$2
+  local NJJ=$3
 
   if [[ "$BLACK_LIST" =~ ${pkg} ]]; then
-    MKF=unset
-  else
-    MKF=$JH_MAKEFLAGS
+    MKF="-j1"
+    NJJ="1"
   fi
 
-  if [[ "$MKF" != "unset" ]]; then
 (
 cat << EOF
-	@echo "export MAKEFLAGS=\"$JH_MAKEFLAGS\"" >> envars
+	@echo "export MAKEFLAGS=\"$MKF\"" >> envars
+	@echo "export NINJAJOBS=\"$NJJ\"" >> envars
 EOF
 ) >> $MKFILE.tmp
-  fi
 }

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

-- 
http://lists.linuxfromscratch.org/sympa/info/alfs-discuss
Unsubscribe: See the above information page
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.