[582] in NetBSD-Development
Shared libraries for PCLU
daemon@ATHENA.MIT.EDU (ghudson@MIT.EDU)
Wed Feb 22 22:29:09 1995
From: ghudson@MIT.EDU
Date: Wed, 22 Feb 1995 22:28:59 -0500
To: netbsd-dev@MIT.EDU
Cc: dcurtis@lcs.mit.edu
I've built shared libraries for pclu under NetBSD/i386 (this required
no code modifications, just some Makefile changes and some new
Makefiles). I've updated /mit/netbsd/dev/PCLU/Makefiles.tar to
contain the Makefile changes for this. The linker makes a few
comments about the assembly code in the garbage collector (relocation
of called functions, or some such), but my 6.035 compiler works fine,
so I don't think that's a problem.
The factorial example is now 18K optimized and 35K debugging. My
6.035 compiler is 500K optimized.
It's my belief that shared libraries belong on system packs rather
than in lockers (although I don't much like it), because it requires
the support of the distribution to add directories to the link editor
cache. It's also my belief that it's wrong to have shared but not
static libraries in a directory. Therefore, I've made the following
changes:
* I put libpclu_opt.so.1.0 and libpclu.so.1.0 (the latter is
built as libpclu_athena.a in the pclu source tree) in
/usr/athena/lib. I also put libpclu_opt.a and libpclu.a
there.
* I modified the installation scripts to include
/usr/athena/lib in the ldconfig line for
/etc/athena/rc.athena.
* I modified the PCLU driver (via the Makefile) and the plink
in /mit/PCLU/inbsdbin to add -L/usr/athena/lib to the link
line.