Does GNU emacs ever use shared libraries?
Juergen Wagner
gandalf at csli.Stanford.EDU
Sat May 13 07:33:09 AEST 1989
In article <152 at talarian.UUCP> scott at talarian.UUCP (Scott Weitzenkamp) writes:
> I noticed that on SunOS 4.0, GNU emacs uses the -Bstatic flag to cc
>to prevent the use of shared libraries. Does GNU emacs ever use
>shared libraries? If not, why not? Does System V have an option
>like -Bstatic to prevent the use of shared libraries?
The main reason is the way in which GNUemacs binaries are created: you start
an "empty" Emacs which loads all necessary files, and then a core image of
Emacs with preloaded files is created. This core image is converted to an
executable program, and that's what you fire up as GNUEmacs.
The problem with this process is that if you save the core image, all routines
have to be resolved, i.e. the resulting image will not support dynamic linking.
[I haven't built Emacs in a while, so things might have changed.]
--
Juergen Wagner gandalf at csli.stanford.edu
wagner at arisia.xerox.com
More information about the Comp.unix.questions
mailing list