Next: , Previous: Compiler Flags, Up: mailutils-config


Getting Loader Flags

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:

‘auth’
Print flags to link against libmuauth, the library adding new authentication methods to libmailbox.
‘guile’
Print flags to link against libmu_scm, the Guile interface library.
‘mbox’
Link against mbox format library.
‘mh’
Link against mh format library.
‘maildir’
Link against maildir format library.
‘imap’
Link against imap format library.
‘pop’
Link against pop format library.
‘all’
Link against all Mailutils format libraries.

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`