|
From: | Mohammad Akhlaghi |
Subject: | Re: getgroups.c failes to compile |
Date: | Mon, 27 May 2019 00:48:48 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 |
On 5/26/19 12:52 AM, Bruno Haible wrote:
It would be good to link each program only with the libraries it needs. The only problem is that we have many programs (so far 15, and increasing), and several libraries. So customizing the linking per program can be buggy.Additionally: Automake offers you a different *_LDFLAGS variable for every program. [1][2] This way, you can link some of your programs against a specific library, without forcing you to link _all_ the programs against it.
But just one question: if a program doesn't use anything from a library, what are the downsides (performance maybe?) to link it with that library anyway? If the downsides are significant, I will customize the linking.
Thanks a lot, Mohammad[1] https://git.savannah.gnu.org/cgit/gnuastro.git/tree/bin/arithmetic/Makefile.am
[Prev in Thread] | Current Thread | [Next in Thread] |