libtool/tests/mdemo
Gary V. Vaughan ff3b32aed7 syntax-check: fix violations and implement sc_prohibit_sed_s_comma.
I like to name temporary directories that I will remove shortly
with two leading commas so that they sort lexicographically at
the top of `ls' output.  Now, `./configure
--prefix=`pwd`/,,inst' works again, for the first time in
several years.
* cfg.mk (sc_prohibit_sed_s_comma): Comma is too common a
character to use routinely as the separator for sed
substitutions on file paths and other variables determined by
the user, causing bugs like the one I describe above.  Make sure
we don't accidentally reintroduce any comma separators in
future.
* Makefile.am, bootstrap, bootstrap.conf, build-aux/extract-trace,
build-aux/general.m4sh, build-aux/git-hooks/commit-msg,
build-aux/git-log-fix, build-aux/ltmain.m4sh, libtoolize.m4sh,
m4/libtool.m4, m4/ltdl.m4, tests/cdemo-undef.test,
tests/cmdline_wrap.at, tests/darwin.at, tests/defs.m4sh,
tests/getopt-m4sh.at, tests/install.at, tests/libtoolize.at,
tests/mdemo/Makefile.am, tests/need_lib_prefix.at,
tests/sysroot.at, tests/tagdemo-undef.test, tests/testsuite.at:
Try to use `|' as the default separator wherever possible,
otherwise something else that doesn't occur in the substitution
expression.
* NEWS: Updated.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
2012-10-02 21:02:16 +07:00
..
.gitignore maint: tidy, sort and consolidate .gitignore files. 2011-10-22 18:36:16 +07:00
configure.ac syntax-check: [REDO] fix violations and implement sc_prohibit_test_const_follows_var. 2012-10-02 21:02:16 +07:00
foo1.c * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
foo2.c * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
foo.h * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
main.c syntax-check: fix violations and implement sc_trailing_blank-non-rfc3676. 2011-11-17 19:22:35 +07:00
Makefile.am syntax-check: fix violations and implement sc_prohibit_sed_s_comma. 2012-10-02 21:02:16 +07:00
mlib.c syntax-check: fix violations and implement sc_trailing_blank-non-rfc3676. 2011-11-17 19:22:35 +07:00
README syntax-check: fix violations and implement sc_trailing_blank-non-rfc3676. 2011-11-17 19:22:35 +07:00
sub.c * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00

This is mdemo, an example package that uses GNU libtool with an
Automake-generated environment to build two simple modules and
a program.

It demonstrates how to build both dynamic and static libraries
that can be dlopened. mdemo uses libtool's portable dlopen
wrapper called "libltdl".
All exported symbols are prefixed with "libname_LTX_" to avoid
symbols conflicts, especially when linking statically.
libltdl will automatically cut the prefix off to get the real name.

Note that on Windows, for the purposes of illustrating ltdl, the
libraries *are* built as dll's, but do not have the __declspec
machinery to make them suitable for loading at link time.  This is
only for clarity inside this example, look at the example in ../demo
to see how the __declspec macros should be set up.