Does GNU emacs ever use shared libraries?
Israel Pinkas ~
pinkas at hobbit.intel.com
Sat May 13 03:31:32 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?
This is because unexec() does not know how to dump executables that were
dynamically linked. James Turner (of Daisy) and I spent a lot of time
bashing on this one, since we had early releases of SunOS 4.0 on Sun
386i's. (We were both field test sites.)
The problem that I had was that there was no predictable way to determine
whether the memory image had been dynamically linked. (Nothing documented,
that is.) Eventually, I gave up on this, since it really didn't matter to
me all that much.
I don't know much about SysV, but I suspect that there should be a way. If
nothing else works, you can always list the library name on the command
line instead of -l<lib>. Remember to add /usr/lib/libc.a, or whatever it
is on your machine, at the end of the command line if your machine has a
dynamic version of libc.
-Israel Pinkas
--
--------------------------------------
Disclaimer: The above are my personal opinions, and in no way represent
the opinions of Intel Corporation. In no way should the above be taken
to be a statement of Intel.
UUCP: {amdcad,decwrl,hplabs,oliveb,pur-ee,qantel}!intelca!mipos3!cadev4!pinkas
ARPA: pinkas%cadev4.intel.com at relay.cs.net
CSNET: pinkas at cadev4.intel.com
More information about the Comp.unix.questions
mailing list