[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: getgroups.c failes to compile
From: |
Bruno Haible |
Subject: |
Re: getgroups.c failes to compile |
Date: |
Sun, 26 May 2019 01:52:50 +0200 |
User-agent: |
KMail/5.1.3 (Linux/4.4.0-145-generic; KDE/5.18.0; x86_64; ; ) |
Mohammad Akhlaghi wrote:
> > How can I get the `-L<LIB_PATH>' part of `LTLIB<NAME>' into LDFLAGS?
>
> The problem is fixed now. As suggested in the documentation, I just
> appended the necessary `LIB<NAME>' entries to `LDADD' and included
> `LDADD' to the `program_LDADD' (of `Makefile.am').
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.
Bruno
[1] https://www.gnu.org/software/automake/manual/html_node/Linking.html
[2]
https://www.gnu.org/software/automake/manual/html_node/Program-and-Library-Variables.html
- getgroups.c failes to compile, Mohammad Akhlaghi, 2019/05/13
- Re: getgroups.c failes to compile, Bruno Haible, 2019/05/14
- Re: getgroups.c failes to compile, Mohammad Akhlaghi, 2019/05/17
- Re: getgroups.c failes to compile, Bruno Haible, 2019/05/17
- Re: getgroups.c failes to compile, Mohammad Akhlaghi, 2019/05/18
- Re: getgroups.c failes to compile, Bruno Haible, 2019/05/18
- Re: getgroups.c failes to compile, Mohammad Akhlaghi, 2019/05/19
- Re: getgroups.c failes to compile, Mohammad Akhlaghi, 2019/05/23
- Re: getgroups.c failes to compile,
Bruno Haible <=
- Re: getgroups.c failes to compile, Mohammad Akhlaghi, 2019/05/26
- Re: getgroups.c failes to compile, Bruno Haible, 2019/05/27