Fix Glibc version detection on 64-bit Debian hosts. Thanks to Pierre Labastie for the report and fix.

This commit is contained in:
Matthew Burgess 2011-12-28 17:41:35 +00:00
parent ec20730f2b
commit f5dc6d7423

View file

@ -85,12 +85,8 @@ check_prerequisites() { #
check_version "2.6.2" "`uname -r`" "KERNEL" check_version "2.6.2" "`uname -r`" "KERNEL"
check_version "3.0" "$BASH_VERSION" "BASH" check_version "3.0" "$BASH_VERSION" "BASH"
check_version "3.0.1" "`gcc -dumpversion`" "GCC" check_version "3.0.1" "`gcc -dumpversion`" "GCC"
if [ -f /lib/libc.so.6 ]; then libcLib="`find /lib /lib64 -name libc.so.6 -print`"
libcLoc=/lib; libcVer="`/${libcLib} | head -n1`"
elif [ -f /lib64/libc.so.6 ]; then
libcLoc=/lib64;
fi;
libcVer="`/${libcLoc}/libc.so.6 | head -n1`"
libcVer="${libcVer##*version }" libcVer="${libcVer##*version }"
check_version "2.2.5" ${libcVer%%,*} "GLIBC" check_version "2.2.5" ${libcVer%%,*} "GLIBC"
check_version "2.12" "$(ld --version | head -n1 | awk '{print $NF}')" "BINUTILS" check_version "2.12" "$(ld --version | head -n1 | awk '{print $NF}')" "BINUTILS"