ar - the archiver

John D Mccalpin mccalpin at vax1.acs.udel.EDU
Fri Mar 2 06:59:44 AEST 1990


In article <9002281129.aa20377 at SMOKE.BRL.MIL> JORDAN at 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 at sgi.sgi.com> davea at 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 at vax1.acs.udel.edu
		   mccalpin at delocn.udel.edu
		   mccalpin at scri1.scri.fsu.edu



More information about the Comp.sys.sgi mailing list