From: "Andrej Borsenkow" <Andrej.Borsenkow@mow.siemens.ru>
To: "ZSH workers mailing list" <zsh-workers@sunsite.auc.dk>
Subject: Dynamic loading on Cygwin - status
Date: Fri, 28 Jul 2000 18:51:57 +0400 [thread overview]
Message-ID: <000101bff8a3$60aad7b0$21c9ca95@mow.siemens.ru> (raw)
O.K., it almost works :-) It was much easier than I suspected due to the fact,
that you can simply link with DLL - no additional stub library is needed. That
enourmosly simplified makefiles.
There are still some gotchas:
- for dlsym() to find a symbol, it has to explcitly exported. It means, that
module's setup() etc functions are not found. They has to be defined with
__attribute__((__dllexport__)). All exported symbols (that have mod_export)
currently get this automatically.
- external function or variable imported from another module is not considered
a constant on Cygwin (actually, on Windows). Hence, any static initializer
fails, e.g
BUILTIN("cap", 0, bin_cap, 0, 1, 0, NULL, NULL),
where bin_cap is redefined to bin_notavail that in imported from mail DLL.
This is not just as easy to solve.
- some more Makefiles tweaking is needed; because now modules depend on other
module's DLL, we need rules to rebuild them.
- of course, zsh.dll has to be installed into $(bindir) else it is not found.
But still, I did run Zsh compiled with dynamic loading support :-))) My thanks
to Zefram for excellent build system! (And good configure tests).
-andrej
Have a nice DOS!
B >>
next reply other threads:[~2000-07-28 14:52 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-07-28 14:51 Andrej Borsenkow [this message]
2000-07-28 16:17 ` Andrej Borsenkow
2000-07-31 13:58 ` Peter Stephenson
2000-07-31 14:08 ` Andrej Borsenkow
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='000101bff8a3$60aad7b0$21c9ca95@mow.siemens.ru' \
--to=andrej.borsenkow@mow.siemens.ru \
--cc=zsh-workers@sunsite.auc.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).