Adapt func_check_version.sh so that both GCC and Gcc are
recognized in the minimal version table
This commit is contained in:
parent
1cf621b0c1
commit
0f92d7f8ae
1 changed files with 6 additions and 2 deletions
|
@ -97,8 +97,12 @@ check_prerequisites() { #
|
||||||
# LFS/HLFS/CLFS prerequisites
|
# LFS/HLFS/CLFS prerequisites
|
||||||
check_version "$MIN_Kernel_VER" "`uname -r`" "KERNEL"
|
check_version "$MIN_Kernel_VER" "`uname -r`" "KERNEL"
|
||||||
check_version "$MIN_Bash_VER" "$BASH_VERSION" "BASH"
|
check_version "$MIN_Bash_VER" "$BASH_VERSION" "BASH"
|
||||||
|
if [ ! -z $MIN_GCC_VER ]; then
|
||||||
check_version "$MIN_GCC_VER" "`gcc -dumpversion`" "GCC"
|
check_version "$MIN_GCC_VER" "`gcc -dumpversion`" "GCC"
|
||||||
check_version "$MIN_GCC_VER" "`g++ -dumpversion`" "G++"
|
check_version "$MIN_GCC_VER" "`g++ -dumpversion`" "G++"
|
||||||
|
elif [ ! -z $MIN_Gcc_VER ]; then
|
||||||
|
check_version "$MIN_Gcc_VER" "`gcc -dumpversion`" "GCC"
|
||||||
|
fi
|
||||||
check_version "$MIN_Glibc_VER" "$(ldd --version | head -n1 | awk '{print $NF}')" "GLIBC"
|
check_version "$MIN_Glibc_VER" "$(ldd --version | head -n1 | awk '{print $NF}')" "GLIBC"
|
||||||
check_version "$MIN_Binutils_VER" "$(ld --version | head -n1 | awk '{print $NF}')" "BINUTILS"
|
check_version "$MIN_Binutils_VER" "$(ld --version | head -n1 | awk '{print $NF}')" "BINUTILS"
|
||||||
check_version "$MIN_Tar_VER" "$(tar --version | head -n1 | cut -d" " -f4)" "TAR"
|
check_version "$MIN_Tar_VER" "$(tar --version | head -n1 | cut -d" " -f4)" "TAR"
|
||||||
|
|
Reference in a new issue