I have both static and dynamic versions of the same library installed on my Linux system:
/usr/lib/libsample.a
/usr/lib/libsample.so
Which one of these libraries will use gcc, if I set argument -lsample ?
gcc xxx.c -lsample
How can I force gcc to use static or dynamic version of the library