Please describe a summary of the new feature (in a paragraph):
Check the glibc version, and extract a native library of sqlite that is
compatible with the target Linux.
Please provide any additional information below:
There are two ways to test the glibc version:
First is to use the GLIBC API:
{{{
#include <stdio.h>
#include <gnu/libc-version.h>
int main (void) { puts (gnu_get_libc_version ()); return 0; }
}}}
A more easier way is to run 'ldd --version'
{{{
$ ldd --version
ldd (GNU libc) 2.5
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.
}}}
Then, extract the first line.
Original issue reported on code.google.com by taroleo on 3 May 2010 at 1:42
Original issue reported on code.google.com by
taroleo
on 3 May 2010 at 1:42