Since you may have a static or general version of the library in your library directory, e. g. libmy.aand libmy.so, or both of them. This is more relevant for system libraries: if you link to libraries in the local assembly tree, you know which version you are creating, static or general, but you may not know how the configuration and libraries of other systems mix.
In addition to this, some platforms may have different suffixes . Therefore, it is better to indicate it in a canonical way.
source
share