Few other things I had to fix before getting this to work for me...
- change ARCHDIR to ARCHLIBDIR in ellcc.h.in
- move statement
if (ellcc)
fprintf (outfile, "\\n\");\n\n");
in line 711 of make-docfile.c down 1 nesting level (so that is only happens
when (defunflag && maxargs != -1), otherwise the generated init file
is invalid.
Some other comments...
- I would think that emodules.h should be installed $ARCHLIBDIR/include
(along with any files it depends on) so that it is possible to develop
modules without having to download the entire source distribution.
- I noticed that $ARCHLIBDIR/include/s and $ARCHLIBDIR/include/m are
symlinks into the source tree, which means that the source tree should
never be deleted or moved if those headers are to be used. What's the
reasoning here? (I am not sure if this is at all related to the DLL
stuff, I just happened to notice this when I was looking around for
emodules.h)
Thanks for great work,
Marat.
Marat Boshernitsan <maratb(a)CS.Berkeley.EDU> writes:
> I could not get a module that was linked with another shared library to
> load until I added -export-dynamic flag to gnu linker when building
> xemacs executable (-Wl,-export-dynamic to gcc). This is on Linux, but I
> suspect that other systems will require something similar (btw, non-gnu
> linkers, e.g. Solaris, will do The Right Thing by default).
>
> Marat.
>
> "J. Kean Johnston" <jkj(a)sco.com> writes:
>
> > [1 <text/plain; us-ascii (7bit)>]
> > All,
> >
> > Attached is a rather large patch to 21.0.61 to support DLL loading. I
> > havent done changelog entries yet but this is pretty complete, even a
> > manual. This has the new ellcc compiler program, and a much more complete
> > and well defined interface. Modules are now 100% the same as built-in
> > code, so it should be easy to migrate stuff out of the dumped Emacs into
> > loadable modules. Please apply this (with -E to remove some empty files)
> > and try it out. I think this works pretty well. No doubt I will have to
> > polish things a little but I would really like to see this stuff in the
> > tree sooner rather than later so that people can get used to the idea,
> > and we can start thinking about which parts of the currently dumped
> > Emacs we want to turn into modules.
> >
> > Comments greatly appreciated.
> > --
> > J. Kean Johnston | "If equal affection cannot be,
> > Engineer, SPG | let the more loving one be me" - W.H. Auden
> > Santa Cruz, CA +----------------------------------------------------------
> > Tel: 831-427-7569 Fax: 831-429-1887 E-mail: jkj(a)sco.com
> > [2 xe21061.dllpatch.gz <application/x-gunzip>]