Changeset 267b19d for common


Ignore:
Timestamp:
11/21/2021 06:23:11 PM (3 years ago)
Author:
Pierre Labastie <pierre.labastie@…>
Branches:
ablfs-more, legacy, trunk
Children:
0495e57e
Parents:
b0965fa
git-author:
Pierre Labastie <pierre.labastie@…> (11/09/2021 10:51:39 AM)
git-committer:
Pierre Labastie <pierre.labastie@…> (11/21/2021 06:23:11 PM)
Message:

Adapt func_install_blfs.sh to the removal of envars

Add to the configuration file in $BUILD_DIR/blfs_root

File:
1 edited

Legend:

Unmodified
Added
Removed
  • common/libs/func_install_blfs

    rb0965fa r267b19d  
    123123LANGUAGE=$LANG
    124124WRAP_INSTALL=$WRAP_INSTALL
     125PACK_INSTALL=/blfs_root/packInstall.sh
    125126DEL_LA_FILES=$DEL_LA_FILES
    126127STATS=n
     128SRC_ARCHIVE=/sources
     129BUILD_ROOT=/sources
     130BUILD_SUBDIRS=y
     131JOBS=$(if [ -n "$N_PARALLEL" ]; then echo $N_PARALLEL; else echo 1; fi)
    127132EOF
     133for OPT_VAR in CFLAGS CXXFLAGS LDFLAGS; do
     134  eval optVal=\$${OPT_VAR}_$DEF_OPT_MODE
     135  if [ -n "$optVal" ] && [ "$optVal" != unset ]; then
     136    echo "CFG_$OPT_VAR"=\"$optVal\" >> $BUILDDIR$BLFS_ROOT/configuration
     137  else
     138    echo "CFG_$OPT_VAR"=EMPTY >> $BUILDDIR$BLFS_ROOT/configuration
     139  fi
     140done
    128141
    129142# Generates the scripts for the blfs tools dependencies (in ./scripts)
Note: See TracChangeset for help on using the changeset viewer.