[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

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

2021-04-17 Thread Alexandre Janniaux
Hi, For information, I've made a test project at this location: https://github.com/alexandre-janniaux/libtool-relocatable-tests/blob/main/Makefile It highlights the issue with the current libtool code and show the linked result when using LIBTOOL=/path/to/patched/libtool. I hope it helps r