Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.mira.net.au!news.netspace.net.au!news.mel.connect.com.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!super.zippo.com!zdc!www.nntp.primenet.com!nntp.primenet.com!news.mathworks.com!fu-berlin.de!irz401!orion.sax.de!uriah.heep!news From: j@uriah.heep.sax.de (J Wunsch) Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: Ytalk and libraries.... Date: 22 Oct 1996 23:43:04 GMT Organization: Private BSD site, Dresden Lines: 28 Message-ID: <54jm68$k3o@uriah.heep.sax.de> References: <326BCA7E.60C3@wsg.net> Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) NNTP-Posting-Host: localhost.heep.sax.de Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Newsreader: knews 0.9.6 X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E "David M. Fogarty" <chaos@wsg.net> wrote: > What would be ideal would be to have it check the display variable and > if X is detected, try to connect to the X Server. *OTHERWISE* not > bother looking for the X related libraries. That would require mucking with the code. Btw., other programs like Emacs are in the same boat. The problem with this is that right now, all of the shared lib stuff is completely transparent to the program, the programmer doesn't have to know at all that his program is going to be run with shared libraries. The shared loader (ld.so) does all of this for him, by issuing load calls for the shared libs the program has been linked to at program startup time. Following your suggestion however (which is technically an excellent idea! [and you aren't the first one thinking about this]), the programmer _must_ care for this matter, and he _must_ explicitly cause the shared libs to be loaded once he knows that he's going to use them. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)