libtool/tests/mdemo
Gary V. Vaughan d43b40113e syntax-check: [REDO] fix violations and implement sc_prohibit_test_const_follows_var.
To safely use a non-literal fist argument to 'test', you must
always prepend a literal non-'-' character, but often the second
operand is a constant that doesn't begin with a '-' already, so
always use 'test a = "$b"' instead of the noisy 'test "X$b" = Xa'.
* cf.mk (sc_prohibit_test_const_follws_var): New syntax-check
rule to ensure we don't reintroduce noisy test operands.
bootstrap, build-aux/extract-trace, build-aux/general.m4sh,
build-aux/ltmain.m4sh, configure.ac, doc/libtool.texi, libtoolize.m4sh,
m4/argz.m4, m4/libtool.m4, m4/ltdl.m4, tests/bindir.at, tests/defs.m4sh,
tests/demo-relink.test, tests/demo/configure.ac,
tests/depdemo-relink.test, tests/destdir.at, tests/duplicate_conv.at,
tests/fail.at, tests/getopt-m4sh.at, tests/help.at, tests/libtoolize.at,
tests/link-2.test, tests/link-order2.at, tests/lt_dlopenext.at,
tests/mdemo/configure.ac, tests/mdemo2/configure.ac,
tests/need_lib_prefix.at, tests/nocase.at, tests/pdemo/configure.ac,
tests/pic_flag.at, tests/search-path.at, tests/shlibpath.at,
tests/static.at, tests/sysroot.at, tests/tagtrace.test,
tests/testsuite.at, tests/with-pic.at: Swap operands to avoid useless
noise.

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
foo2.c
foo.h
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 re-enable sc_makefile_at_at_check. 2011-11-17 19:20:25 +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

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.