bug-libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

configuring eager loading with libltdl


From: Dave Love
Subject: configuring eager loading with libltdl
Date: 12 Apr 2002 19:06:51 +0100
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1.95

I think it would be useful to have a means to configure libltdl to do
eager resolving of symbols, i.e. use RTLD_NOW rather than RTLD_LAZY.
At present, the only way to do it seems to be to modify config.h to
define LT_LAZY_OR_NOW after you've configured it, and there isn't a
way to arrange that from a top-level configure as far as I can tell.
Perhaps there could be a way of changing at least that dlopen
parameter at runtime?

The context is that I wrote dynamic loading stuff for Emacs.  If you
use lazy loading, failure to resolve a symbol crashes Emacs when the
relevant function is invoked, whereas you get a useful error message
on loading it in the eager case.

If there's no good reason things are as they are, I can probably
supply a suitable change.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]