Next: General Information, Previous: Compiler Flags, Up: mailutils-config
The --link, or its short form -l prints to the standard output the loader flags necessary to link a program against Mailutils libraries.
When invoked without arguments, it produces the flags necessary to link against the basic library of Mailutils: libmailbox. Arguments may be given that alter this behavior. These are:
mbox
format library.
mh
format library.
maildir
format library.
imap
format library.
pop
format library.
The order of arguments does not matter.
For example, if you wrote a program myprog.c that uses standard unix mailbox format, mh format and the Guile interface, then you would link it with the following command:
cc -omyprog myprog.o `mailutils-config --link mbox mh guile`