Jan Vroonhof <vroonhof(a)math.ethz.ch> writes:
wmperry(a)aventail.com (William M. Perry) writes:
> Yup, I've actually got xemacs/modules/gpm ready to go if anybody
> wants.
Is there way to use the same source file for this so that it can be
decided at configure time? (not that it is that relevant at this time,
because Linux supports modules anyway).
It does use the exact some source file.
> But to use this the temacs binary MUST be linked in such a way
to export
> all symbols (-Wl,--export-dynamic under Linux, etc) since we modify 2
> global variables (event_stream and tty_console_methods)
Don't we do that already? I thought that was part of the module support.
It didn't seem to get put into the link flags here with a clean configure.
You have more module experience than I do. Would it be more
appropriate
to introduce some wrappers to set these (and make the variables static?).
event_stream cannot be static, too many places muck around with them. I
don't think it is worth it. I'll try to figure out why the link flags
weren't set correctly, and submit a patch if necessary.
I'm attaching the modules/gpm/Makefile that I hacked up. Just copy
gpmevent.c over into the directly and you should be all set.
-Bill P.