*BSD News Article 95510


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!worldnet.att.net!cbgw2.lucent.com!nntphub.cb.lucent.com!ssbunews.ih.lucent.com!news
From: Peter Mutsaers <plm@lucent.com>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: How to link /bin (and /sbin) dynamically?
Date: 16 May 1997 09:49:33 +0200
Organization: Lucent Technologies, Indian Hill
Lines: 18
Sender: plm@hzsbc259.nl.lucent.com
Message-ID: <y7zyb9f26wi.fsf@hzsbc259.nl.lucent.com>
NNTP-Posting-Host: hzsbc259.nl.lucent.com
X-Newsreader: Gnus v5.4.46/Emacs 19.34
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:41010

Everything in /bin and /sbin is linked statically. Isn't this a waste
of diskspace and also doesn't it slow down things a bit?

OK, I know it is more reliable, but OTOH if I have a boot floppy and
regular tape backups, I can always reinstall the system in case of a
filesystem damage or in case of a stupid error (like rm /usr/lib/libc*)...

Even Solaris and SunOS have /bin and the most part of /sbin linked
dynamically.

How can I change make world to do this? Is there a simple flag or do I
really need to modify /usr/src/bin/*/Makefile?

Are there executables (such as /bin/sh) that really *need* to be
statically linked?
-- 
Peter Mutsaers     |    Lucent Technologies, Network Systems
plm@lucent.com     |    Huizen, the Netherlands