We can embed this library at preprocessing–time by adding the following line on the top of a source file:
mbfl_embed_library(/path/to/libmbfl-linker.bash)
for details Libraries loading and embedding.
If we use the GNU Autotools to configure a package, we can add the following line to Makefile.am:
MBFL_LIBMBFL_LINKER = @MBFL_LIBMBFL_LINKER@
and use such variable to embed the linker library; Using the GNU Autotools. For example, in the Makefile.am we do:
myscriptsdir = $(bindir) myscripts_SCRIPTS = myscript.bash myscripts_BSOURCES = myscript.bash.m4 CLEANFILES += $(myscripts_SCRIPTS) EXTRA_DIST += $(myscripts_BSOURCES) AM_MBFLPP_FLAGS = --add-bash --define=__LIBMBFL_LINKER__="$(MBFL_LIBMBFL_LINKER)" %.bash : %.bash.m4 $(MBFLPP) $(AM_MBFLPP_FLAGS) $(MBFLPPFLAGS) <$< >$@
and in the script we do:
mbfl_embed_library(__LIBMBFL_LINKER__)
Also notice that the preprocessor option --print-libmbfl-linker will print the file pathname of the installed library, Invoking the preprocessor. For example:
mbflpp.bash --print-libmbfl-linker -| /usr/local/share/mbfl/libmbfl-linker.bash
This document describes version 3.0.0-devel.9 of Marcos Bash Functions Library.