[comp.unix.ultrix] -g compile option used on libc.a and libm.a

dan@asihub.UUCP (Dan O'Neill) (05/26/89)

Under Ultrix 3.0 (RISC) for the PMAX, it appears that the object
libraries /usr/lib/libc.a and /usr/lib/libm.a are compiled with the -g
option.  Anybody have any ideas why this was done? 
-- 
Dan O'Neill	dan@asihub.uucp    {uunet|ncr-sd}!asihub!dko
Automated Systems, Inc.  San Diego R&D

len@synthesis.Synthesis.COM (Len Lattanzi) (05/26/89)

In article <104@asihub.UUCP> dan@asihub.UUCP (Dan O'Neill) writes:
:Under Ultrix 3.0 (RISC) for the PMAX, it appears that the object
:libraries /usr/lib/libc.a and /usr/lib/libm.a are compiled with the -g
:option.  Anybody have any ideas why this was done? 
:-- 
:Dan O'Neill	dan@asihub.uucp    {uunet|ncr-sd}!asihub!dko
:Automated Systems, Inc.  San Diego R&D


You don't say how you're determining this so I'm guessing that you're reading
the 'glevel 2' from 'odump -F'. If you look in /usr/include/symconst.h
you'll see that GLEVEL_0 is #defined as 2. I just looked at Ultrix
Worksystem V2.0 (Rev. 7) and everything but /lib/libfe.a /lib/libu.a
and some parts of /lib/libU77.a were compiled -g0.
 Len Lattanzi (len@Synthesis.com) <{ames,pyramid,decwrl}!mips!synthesis!len>
 Synthesis Software Solutions, Inc. 		The RISC Software Company
I would have put a disclaimer here but I already posted the article.

jg@max.crl.dec.com (Jim Gettys) (05/26/89)

Given the time we had to test PMAX, a number of things were done to make it
easier to track down bugs.  The library including symbols appears to be one of
them.

I expect it will be "fixed" in the next release.
			- Jim