Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!asuvax!ncar!mephisto!udel!udccvax1!mccalpin From: mccalpin@vax1.acs.udel.EDU (John D Mccalpin) Newsgroups: comp.sys.sgi Subject: Re: ar - the archiver Message-ID: <5798@udccvax1.acs.udel.EDU> Date: 1 Mar 90 19:59:44 GMT References: <9002281129.aa20377@SMOKE.BRL.MIL> <52318@sgi.sgi.com> Reply-To: mccalpin@vax1.acs.udel.EDU (John D Mccalpin) Organization: College of Marine Studies, Univ. of Delaware Lines: 23 In article <9002281129.aa20377@SMOKE.BRL.MIL> JORDAN@gmr.COM writes: >I am able to create a library, add objects, and update symbol tables >(e.g. ar cr lib.a a.o b.o, or ar ts lib.a), BUT I would like the compilerr >to recognize it via a flag; for example, the way it recognizes -Zg, or -lgl_s. In article <52318@sgi.sgi.com> davea@quasar.UUCP (David B. Anderson) replies: [example #1 deleted since it works fine....] ># alternatively: > cp /myliblocation/libmy.a /usr/local/lib > cc t.c -L/usr/local/lib -lmy # the -Lpath adds the path to the ld search list Some notes on this technique: (1) All of the SGI machines that I have used automagically search /usr/local/lib, so the -L/usr/local/lib option is not needed here. (2) The -L option does not work on the old 3000 series machines. (At least with the f77 command, since -L is preempted so that you can request a program listing.) -- John D. McCalpin - mccalpin@vax1.acs.udel.edu mccalpin@delocn.udel.edu mccalpin@scri1.scri.fsu.edu