Check glibc version for a particular gcc compiler

后端 未结 8 1213
既然无缘
既然无缘 2020-11-29 19:13

I have two gcc compilers installed on my system, one is gcc 4.1.2 (default) and the other is gcc 4.4.4. How can I check the libc version used by

8条回答
  •  既然无缘
    2020-11-29 19:52

    You can use strings command to check GLIBC version of compiler. Highest version is applicable.

    ubuntu1604:extra$ strings ./arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi-gcc | grep GLIBC
        GLIBC_2.3
        GLIBC_2.8
        GLIBC_2.14
        GLIBC_2.4
        GLIBC_2.11
        GLIBC_2.2.5
        GLIBC_2.3.4
    

提交回复
热议问题