Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!van-bc!ubc-cs!alberta!cdshaw From: cdshaw@cs.UAlberta.CA (Chris Shaw) Newsgroups: comp.sys.sgi Subject: Re: ar - the archiver Summary: Use links Message-ID: <1990Mar4.111008.19335@cs.UAlberta.CA> Date: 4 Mar 90 11:10:08 GMT References: <9002281129.aa20377@SMOKE.BRL.MIL> <52318@sgi.sgi.com> Sender: cdshaw Organization: University of Alberta, Edmonton, Canada Lines: 22 In article <52318@sgi.sgi.com> davea@quasar.UUCP (David B. Anderson) writes: >This is easily done. Say you name your archive libmy.a and have a copy >temporarily in /myliblocation. > > su # need to be root for the cp to /usr/lib > cp /myliblocation/libmy.a /usr/lib > exit # no need to be root any more > cc t.c -lmy #this works, since ld searches /usr/lib >[ David B. Anderson Silicon Graphics (415)335-1548 davea@sgi.com ] This works fine, although you might not want to become root every 3 weeks just to update the library. Use symbolic links, as follows. su cd /usr/lib # goto lib directory ln -s /myliblocation/libmy.a libmy.a # link to your library exit # now you don't have to do this again if libmy.a changes -- Chris Shaw University of Alberta cdshaw@cs.UAlberta.ca Now with new, minty Internet flavour! CatchPhrase: Bogus as HELL !