Commit Graph

27 Commits

Author SHA1 Message Date
Bryce Denney
dad1e7b3e9 - build the module symbol name myself instead of letting ltdl do it. On win32
I'm using ltdl even it considers my DLLs to NOT be a libtool archive, and
this is making the symbol name transformation mess up.  If I do it myself,
I can avoid this.
2002-10-17 06:49:44 +00:00
Bryce Denney
ce0a80f390 - change symbols to "module1_LTX_name" instead of "libmodule1_LTX_name" 2002-10-17 06:48:05 +00:00
Bryce Denney
0710552145 - rename module symbols to make them unique. For example, now module_init
is libmodule1_LTX_module_init in module1.  This is all done in the
  modules.h header file so the .cc files still looks clean.
- modified: module1.cc module2.cc
- added: modules.h
2002-10-17 05:36:18 +00:00
Bryce Denney
c5ee3aea16 - move the extern definition for the module functions in to modules.h 2002-10-17 05:33:39 +00:00
Bryce Denney
3e7bc9e2da - clean up comments 2002-10-17 05:33:17 +00:00
Bryce Denney
7398aa8678 - add VARIES{} around the filename of the module, since it's platform
specific
2002-10-16 12:29:06 +00:00
Bryce Denney
8a1917efcd - add VARIES{} around the module name that is loaded, since it's different
on win32
2002-10-16 12:27:42 +00:00
Bryce Denney
57cb560e53 - pull the ltdl link arg out of LIBS so that the libtool section and the
win32-dll section can specify it in their own different ways.
2002-10-16 12:26:48 +00:00
Bryce Denney
14a35053a0 - include stdlib.h so that exit is defined. 2002-10-16 04:40:21 +00:00
Bryce Denney
1ee55d9edb - move some makefile stuff that is common to all subdirs into
common-make-defs.txt
2002-10-16 04:09:24 +00:00
Bryce Denney
7fc1a8b2cf - check in expected output from each program 2002-10-16 04:08:24 +00:00
Bryce Denney
837d985b19 - call exit(77) for success. 77 was chosen arbitrarily; it is unlikely that a
malfunctional program could return this code by accident.
2002-10-16 04:07:58 +00:00
Bryce Denney
d528a0f020 - add win32 DLL section to the makefile. Use entirely different
target names so that both sets of rules can coexist in the same file.
  The configure script selects which one to use.
- use patterns to build plugins.
- remove Makefile, which was specific to win32.
2002-10-16 02:55:16 +00:00
Bryce Denney
e972168d39 - clean up the libtool section of the makefile
- remove the unsuccessful experiment with libmain.la
- now the executable uses -export-dynamic and the modules use -module,
  as it should be
2002-10-16 02:36:45 +00:00
Bryce Denney
be5316b66e - commit my notes from test6. Some day soon I will have to clean this
up and then send about 6 patches to the libtool developers.
2002-10-16 02:16:43 +00:00
Bryce Denney
3f57e5f278 - add reference to a variable, like in test7 2002-10-16 01:32:52 +00:00
Bryce Denney
19a62a4798 - temporarily check in this Makefile that works for cygwin/mingw. Then
I will go back to a unix system and hack Makefile.in and configure.in so
  that we get these exact make commands for cygwin only.
2002-10-16 01:32:27 +00:00
Bryce Denney
5b555711f2 - minor changes to make this work in win32: define LT_SCOPE to be extern
before including <ltdl.h>.  Otherwise it tries to export some symbols
  from main.cc, which then conflict with the real ltdl when it gets linked.
- on win32 I am not using libtool to build the libraries, so I need to
  use a different format string for module names.  On win32 use "%s.dll".
- call lt_dlopenext() instead of lt_dlopen() because it searches for
  filenames using various extensions including the libtool extension .la
  and also the system's native library name (.so or whatever).
2002-10-16 01:28:41 +00:00
Bryce Denney
f691060833 - mention backtrace of an ltdl error msg 2002-10-14 21:02:53 +00:00
Bryce Denney
d6dad223e1 - just dlinit once, at start of main 2002-10-13 02:28:06 +00:00
Bryce Denney
fbe1e69a95 - add more specific printf
- modules are compiled as lib%s.la, not %s.la.
- always load module1 and module2.  Then try to load any modules that
  are mentioned on the command line.
2002-10-13 02:26:09 +00:00
Bryce Denney
0699e46993 - move the extern "C" declaration of module_init into main.h so that it
will affect all modules.
- modified: main.h module1.cc
2002-10-13 02:22:37 +00:00
Bryce Denney
a5a05201d8 - put INCLTDL and LIBLTDL substitution variables into the Makefile
- this requires a correct setting for top_srcdir
2002-10-12 12:29:35 +00:00
Bryce Denney
ed5ca4801b - add missing call to lt_dlinit(). Why do I keep forgetting this?!
- printf handle was missing the handle
- remove underscore from module_init function name
- fix err msg
2002-10-12 11:50:28 +00:00
Bryce Denney
af8832907a - correct LIBS line is now provided by configure 2002-10-12 11:49:22 +00:00
Bryce Denney
f20403d13a - update Makefile.in, remove Makefile 2002-10-12 06:02:01 +00:00
Bryce Denney
31b8154266 - add test6, which actually tries to open a shared lib with lt_dlopen.
For now I've been editing the Makefile directly and haven't updated
  the Makefile.in.  Once it works I'll transfer everything to Makefile.in
  and remove Makefile.
2002-10-12 05:52:15 +00:00