Method Two
Just execute:
ldd --version
which comes with glibc package.
root@ubuntu:/# ldd --version
ldd (Ubuntu GLIBC 2.23-0ubuntu7) 2.23
Copyright © 2016 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.
root@ubuntu:/#
method three
Write a small program to directly print out the version number of glibc:
#include
#include
int main (void)
{
puts (gnu_get_libc_version ());
return 0;
}
Use the shell command in the android directory
to view
cat /proc/version
Linux version 4.4.126 (jawest2@jwast-rd3) (gcc version 6.3.1 20170404 (Linaro GCC 6.3-2017.05) ) #27 SMP PREEMPT Tu
How to view cross-compilation information
Use the command export on the ubuntu server
to view cross-compilation information