I don't understand why one would want to make libnetcdf into a shared library. My experience of shared libraries is that they result in fragility. Good executable files become useless executable files behind your back, to be discovered when you just want to run them, not sort out the life history of the libraries. Shared libraries make sense when the library is obese. That is not the case with netcdf. I know of only one other reason for shared libraries. Enlighten me.