Re: Avoid -Wl,--whole-archive

2019-05-21 Thread Thomas Jahns
On 5/16/19 5:00 PM, Bob Friesenhahn wrote: Convenience libraries are evil.  Convenience libraries slow down your build process dramatically and they cause 'make' not to be aware of the actual underlying dependencies, so that it does much more work than is required each type you invoke 'make'. 

Re: Avoid -Wl,--whole-archive

2019-05-16 Thread Tim Rühsen
libgnu.a. Each of the shared >> libraries just need a certain set of functions from libgnu.a. >> >> To avoid adding everything from libgnu.a to each of the libraries, we >> would like to avoid "-Wl,--whole-archive ../lib/.libs/libgnu.a >> -Wl,--no-whole-archive&

Re: Avoid -Wl,--whole-archive

2019-05-16 Thread Bob Friesenhahn
adding everything from libgnu.a to each of the libraries, we would like to avoid "-Wl,--whole-archive ../lib/.libs/libgnu.a -Wl,--no-whole-archive". There is no requirement to use "convenience" libraries. People who do things due to "convenience" are often classifie

Avoid -Wl,--whole-archive

2019-05-16 Thread Tim Rühsen
of the libraries, we would like to avoid "-Wl,--whole-archive ../lib/.libs/libgnu.a -Wl,--no-whole-archive". There several ways to work around this situation (e.g. creating one libgnu.a per library). The preferred one would be to have a new option to libtool, '-no-whole-archive'. A si