[PATCH 2/2] ltmain.in: defer warn dependency to static library

2021-04-06 Thread Alexandre Janniaux
When linking old library to any libtool target that is not an executable, libtool warns that it might not be portable, in particular because shared libraries need PIC from the static library to be working. However, when adding an old library as dependency to a static libtool library, there is no l

[PATCH 1/2] ltmain.in: ensure old libraries are not archived

2021-04-06 Thread Alexandre Janniaux
Previously, adding a static archive library, aka. old library, as a dependency of a new libtool library compiled as a static archive (be it a convenience library or an installed static library) resulted in the dependency archive being added into the target archive as-is. However, linkers are usual