[CMake] detecting libc version info

Paweł Sikora pluto at agmk.net
Wed Sep 1 13:03:24 EDT 2010


On Wednesday 01 September 2010 18:32:11 Tim St. Clair wrote:
> Phil -
> 
>     Thanks for the feedback, I was able to create a macro which uses try_run
> to detect.

you can also run /lib64/libc.so.6 to detect/parse glibc version info.

$ /lib64/libc.so.6
GNU C Library stable release version 2.12.1, by Roland McGrath et al.
Copyright (C) 2010 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.
Compiled by GNU CC version 4.5.1 20100803 (release).
Compiled on a Linux 2.6.34 system on 2010-08-19.
Available extensions:
        crypt add-on version 2.1 by Michael Glad and others
        GNU Libidn by Simon Josefsson
        Native POSIX Threads Library by Ulrich Drepper et al
        BIND-8.2.3-T5B
libc ABIs: UNIQUE IFUNC
For bug reporting instructions, please see:
<http://www.gnu.org/software/libc/bugs.html>.


More information about the CMake mailing list