I have the following question. Consider that some executable file depends from some library. What is the difference for built executable file in case when for linking static or shared library is used?
gcc -o binary main.o -lsomelib, where 'somelib' is 'libsomelib.a' or 'libsomelib.so'. I guess no difference for execution...
I will try to explain more details. I guess that in line above I have really static linking even if libsomelib.so file is used. Is it correct?
I'm not interesting when for linking the option '-Wl,-rpath' is used - it is clear...