Lines 31499-31505
Link Here
|
31499 |
for file in `ldconfig -p | grep /libc.so| xargs -n 1 echo | grep /libc.so`; do |
31499 |
for file in `ldconfig -p | grep /libc.so| xargs -n 1 echo | grep /libc.so`; do |
31500 |
test -s "$file" && LIBC_ALTS="${LIBC_ALTS}${LIBC_ALTS:+ }$file" |
31500 |
test -s "$file" && LIBC_ALTS="${LIBC_ALTS}${LIBC_ALTS:+ }$file" |
31501 |
done |
31501 |
done |
31502 |
LIBC_NAME=`echo ${LIBC_ALTS} | sed -e 's/.*\///' | sort -nr | head -n 1` |
31502 |
LIBC_NAME=`echo ${LIBC_ALTS} | sed -e 's/ \+/\n/g' | sed -e 's/.*\///' | sort -nr | head -n 1` |
31503 |
if test "x${LIBC_NAME}" = x; then |
31503 |
if test "x${LIBC_NAME}" = x; then |
31504 |
#nothing found, set libc.so anyway |
31504 |
#nothing found, set libc.so anyway |
31505 |
LIBC_NAME="${base_library_path}libc.so" |
31505 |
LIBC_NAME="${base_library_path}libc.so" |
Lines 31779-31784
Link Here
|
31779 |
int |
31779 |
int |
31780 |
main(int argc, char *argv[]) |
31780 |
main(int argc, char *argv[]) |
31781 |
{ |
31781 |
{ |
|
|
31782 |
return 1; /* In Linux system, there is no program named 'lari', |
31783 |
so return 1 directly. (means preload can be enabled) */ |
31782 |
char buf[1024]; |
31784 |
char buf[1024]; |
31783 |
|
31785 |
|
31784 |
strcpy(buf, "lari -V "); |
31786 |
strcpy(buf, "lari -V "); |