Reputation: 9198
I'm trying to understand GNU Autools.
My project compiles fine when I add -lxyz
to the command line g++ ...
. xyz
doesn't support pkg-config. What line do I need to add to Makefile.am
? And to which Makefile.am
do I add it - there is one for each directory?
Upvotes: 0
Views: 1132
Reputation: 22519
Add it to LDADD. See the "Linking" node in the manual.
You can either add it to each program's prog_LDADD, or put it globally in LDADD. You need to do this in each Makefile.am that links a program that uses this library.
Upvotes: 1