Return to BSD News archive
Path: euryale.cc.adfa.oz.au!como.dpie.gov.au!news.gan.net.au!act.news.telstra.net!news.telstra.net!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.mel.connect.com.au!news.syd.connect.com.au!phaedrus.kralizec.net.au!godzilla.zeta.org.au!not-for-mail From: bde@zeta.org.au (Bruce Evans) Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: How to link /bin (and /sbin) dynamically? Date: 16 May 1997 19:51:13 +1000 Organization: Kralizec Internet Lines: 21 Message-ID: <5lhamh$c4a$1@godzilla.zeta.org.au> References: <y7zyb9f26wi.fsf@hzsbc259.nl.lucent.com> NNTP-Posting-Host: godzilla.zeta.org.au Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:41031 In article <y7zyb9f26wi.fsf@hzsbc259.nl.lucent.com>, Peter Mutsaers <plm@lucent.com> wrote: >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? It's probably a good use of disk space (except when disk space is short, e.g., on floppies), and it speeds things up a bit (except on slow media). >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? There is no simple flag. SHLIBDIR gives the shared library directory. NOSHARED has to be turned off in several Makefiles. Paths in several linker source files need to be modified. >Are there executables (such as /bin/sh) that really *need* to be >statically linked? Only ld.so. -- Bruce Evans bde@zeta.org.au