Statically linking to libraries
I am new to linux development and am currently developing a very simple program using gcc. I have to specify which packages output binary will need to user. User may use the program in different versions of linux.
When i run "ldd" to output binary, i see that my program is dependent on some libraries. Out of this most of them are part of glibc package (e.g. libm, libnsl). ldd gives "libcwait.so" as dependency.
Any one knows which package is libcwait.so part of? What package should i tell user to install to make sure libcwait.so is available on system.
Apart from this, is there any way to link statically to libraries which are part of glibc and libcwait? Is it recommended considering that user is going to run this on different versions of linux.