Add hint about how we name profiled libraries (append _p at the right place).

PR:		8061
Submitted by:	Brandon Gillespie <brandon@ice.cold.org>
Reviewed by:	joerg, ru
MFC after:	5 weeks
This commit is contained in:
Jens Schweikhardt 2001-08-14 17:48:29 +00:00
parent 30949fd4b5
commit fa7a1ab968
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=81637

View File

@ -58,6 +58,17 @@ The
.Fl pg
option also links in versions of the library routines
that are compiled for profiling.
By convention these libraries have their name suffixed with
.Pa _p ,
i.e. the profiled version of
.Pa libc.a
is
.Pa libc_p.a
and if you specify libraries directly to the
compiler or linker you can use
.Fl l Ns Ar c_p
instead of
.Fl l Ns Ar c .
.Nm Gprof
reads the given object file (the default is
.Pa a.out)