libtool/mdemo
Thomas Tanner 316ebb4d2d * mdemo/main.c: removed hardcoded library names; link against -lm
* tests/mdemo-exec, tests/mdemo-inst: pass the library names
	to the program
1998-11-07 04:33:47 +00:00
..
.cvsignore 1998-11-04 Alexandre Oliva <oliva@dcc.unicamp.br> 1998-11-04 09:43:29 +00:00
configure.in 1998-11-04 Alexandre Oliva <oliva@dcc.unicamp.br> 1998-11-04 09:43:29 +00:00
foo1.c 1998-11-04 Alexandre Oliva <oliva@dcc.unicamp.br> 1998-11-04 09:43:29 +00:00
foo2.c 1998-11-04 Alexandre Oliva <oliva@dcc.unicamp.br> 1998-11-04 09:43:29 +00:00
foo.h 1998-11-04 Alexandre Oliva <oliva@dcc.unicamp.br> 1998-11-04 09:43:29 +00:00
libfoo1.sym 1998-11-04 Alexandre Oliva <oliva@dcc.unicamp.br> 1998-11-04 09:43:29 +00:00
libfoo2.sym 1998-11-04 Alexandre Oliva <oliva@dcc.unicamp.br> 1998-11-04 09:43:29 +00:00
ltdl.c 1998-11-04 Alexandre Oliva <oliva@dcc.unicamp.br> 1998-11-04 09:43:29 +00:00
ltdl.h 1998-11-04 Alexandre Oliva <oliva@dcc.unicamp.br> 1998-11-04 09:43:29 +00:00
ltdls.c 1998-11-04 Alexandre Oliva <oliva@dcc.unicamp.br> 1998-11-04 09:43:29 +00:00
main.c * mdemo/main.c: removed hardcoded library names; link against -lm 1998-11-07 04:33:47 +00:00
Makefile.am * mdemo/main.c: removed hardcoded library names; link against -lm 1998-11-07 04:33:47 +00:00
README 1998-11-04 Alexandre Oliva <oliva@dcc.unicamp.br> 1998-11-04 09:43:29 +00:00

This is GNU modular hell, an example package that uses GNU libtool with an
Automake-generated environment to build two simple libraries and programs.

It demonstrates how to build both dynamic and static libraries
that can be dlopened. You need a wrapper (ltdl.c and ltdls.c)
for your dlopen functions. For static libraries we prefix all
non-static symbols with libname___ using the LTEXP(symbol) macro.
When dlopening these static libraries, we cut the prefix off to
get the real name.