Changeset ec20730 for common


Ignore:
Timestamp:
11/30/2011 09:29:55 PM (12 years ago)
Author:
Matthew Burgess <matthew@…>
Branches:
2.3, 2.4, ablfs, ablfs-more, legacy, new_features, trunk
Children:
f5dc6d7
Parents:
a7e1348
Message:

Correctly detect libc.so.6 on x86_64 distros that place it in /lib64

File:
1 edited

Legend:

Unmodified
Added
Removed
  • common/libs/func_check_version.sh

    ra7e1348 rec20730  
    8686  check_version "3.0"     "$BASH_VERSION"       "BASH"
    8787  check_version "3.0.1"   "`gcc -dumpversion`"  "GCC" 
    88   libcVer="`/lib/libc.so.6 | head -n1`"
     88  if [ -f /lib/libc.so.6 ]; then
     89    libcLoc=/lib;
     90  elif [ -f /lib64/libc.so.6 ]; then
     91    libcLoc=/lib64;
     92  fi;
     93  libcVer="`/${libcLoc}/libc.so.6 | head -n1`"
    8994  libcVer="${libcVer##*version }"
    9095  check_version "2.2.5"   ${libcVer%%,*}        "GLIBC"
Note: See TracChangeset for help on using the changeset viewer.