On 3 April 2011 05:45, Dr. David Kirkby wrote: > Does anyone know of sure if gcc would use the GNU C library on OpenSolaris, > or would it use the Sun C library? GCC and glibc are separate projects, built and installed separately, so if you install GCC that doesn't install glibc. GCC uses the system's C library, so on GNU/Linux it uses glibc because that's what's available, but on Solaris it uses the Solaris libc. > Creating a "hello world" program, then using ldd to find the libraries, I > see: > > drkirkby@hawk:~$ gcc test.c > drkirkby@hawk:~$ ldd ./a.out > libc.so.1 => /lib/libc.so.1 > libm.so.2 => /lib/libm.so.2 > > which makes me think that the Sun C library is used and glibc would not be > used at all. glibc is probably not even installed at all.