Always display gcc's full version

This commit is contained in:
Pierre Labastie 2019-03-11 14:25:09 +00:00
parent f5e658dc6c
commit 49ba78d711

View file

@ -103,10 +103,10 @@ check_prerequisites() { #
check_version "$MIN_Bash_VER" "$BASH_VERSION" "BASH" check_version "$MIN_Bash_VER" "$BASH_VERSION" "BASH"
fi fi
if [ ! -z $MIN_GCC_VER ]; then if [ ! -z $MIN_GCC_VER ]; then
check_version "$MIN_GCC_VER" "`gcc -dumpversion`" "GCC" check_version "$MIN_GCC_VER" "`gcc -dumpfullversion -dumpversion`" "GCC"
check_version "$MIN_GCC_VER" "`g++ -dumpversion`" "G++" check_version "$MIN_GCC_VER" "`g++ -dumpfullversion -dumpversion`" "G++"
elif [ ! -z $MIN_Gcc_VER ]; then elif [ ! -z $MIN_Gcc_VER ]; then
check_version "$MIN_Gcc_VER" "`gcc -dumpversion`" "GCC" check_version "$MIN_Gcc_VER" "`gcc -dumpfullversion -dumpversion`" "GCC"
fi fi
if [ -n "$MIN_Glibc_VER" ]; then if [ -n "$MIN_Glibc_VER" ]; then
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"