Changeset 86debb0


Ignore:
Timestamp:
05/07/2022 06:47:30 PM (2 years ago)
Author:
Pierre Labastie <pierre.labastie@…>
Branches:
ablfs-more, trunk
Children:
d3dbebe
Parents:
28ef51b
git-author:
Pierre Labastie <pierre.labastie@…> (05/07/2022 05:07:15 PM)
git-committer:
Pierre Labastie <pierre.labastie@…> (05/07/2022 06:47:30 PM)
Message:

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
File:
1 edited

Legend:

Unmodified
Added
Removed
  • optimize/optimize_functions

    r28ef51b r86debb0  
    7171#----------------------------------#
    7272  local pkg=$1
    73   local MKF
     73  local MKF=$2
     74  local NJJ=$3
    7475
    7576  if [[ "$BLACK_LIST" =~ ${pkg} ]]; then
    76     MKF=unset
    77   else
    78     MKF=$JH_MAKEFLAGS
     77    MKF="-j1"
     78    NJJ="1"
    7979  fi
    8080
    81   if [[ "$MKF" != "unset" ]]; then
    8281(
    8382cat << EOF
    84         @echo "export MAKEFLAGS=\"$JH_MAKEFLAGS\"" >> envars
     83        @echo "export MAKEFLAGS=\"$MKF\"" >> envars
     84        @echo "export NINJAJOBS=\"$NJJ\"" >> envars
    8585EOF
    8686) >> $MKFILE.tmp
    87   fi
    8887}
Note: See TracChangeset for help on using the changeset viewer.