LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Embedded & Single-board computer (https://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/)
-   -   Which GLIBC version is using my toolchain? (https://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/which-glibc-version-is-using-my-toolchain-4175452074/)

mikeollie 02-28-2013 07:43 AM

Which GLIBC version is using my toolchain?
 
Hi everyone, im new here.
I would like to know which GLIBC version is using my builded toolchain. I know the C Library present in my embedded system but what i would like to know is the GLIBC version used by my toolchain. I cant use ldd against libc.so.6 since it is builded for ARM.

Furthermore, how can i know which PATH library is using by default the GNU linker of my toolchain?. Sometimes building an application i get some errors like:

Code:

warning: libx***.so.0, needed by needed by liby***.so, not found (try using -rpath or -rpath-link)
But libx***.so.0 and liby***.so are in the same directory, why there is not any ld.s0.conf in toolchains $PATH?

Thanks and regards.

theNbomr 03-04-2013 01:28 PM

I think this does what you want
Code:

/path/to/your/cross/gcc -print-file-name=libc.so
There is some other stuff that may be relevant. Run 'gcc --help', and look for the options that look like '-print-blah-blah'

--- rod.

mikeollie 03-27-2013 05:10 AM

Quote:

Originally Posted by theNbomr (Post 4904537)
I think this does what you want
Code:

/path/to/your/cross/gcc -print-file-name=libc.so
There is some other stuff that may be relevant. Run 'gcc --help', and look for the options that look like '-print-blah-blah'

--- rod.

Thanks theNbomr, its the answer i was looking for.


All times are GMT -5. The time now is 01:44 AM.