Node:Direct Linking, Next:, Previous:Log Functions, Up:libmu_scm



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 mailutils-config, 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)