3.3.7 Direct Linking

If you plan to link your program directly to ‘libguile’, it will probably make sense to link ‘libmu_scm’ directly as well. The arguments to the program loader may be obtained by running

 
mailutils-config --link guile

See section mailutils-config — Get the Information about the Mailutils Build, for more information about this utility.

Here is a sample Makefile fragment:

 
MU_LDFLAGS=`mailutils-config --link guile`
MU_INCLUDES=`mailutils-config --include`

myprog: myprog.c
        $(CC) -omyprog $(CFLAGS) $(MU_INCLUDES) myprog.c $(MU_LDFLAGS)