Re: Profiled libraries on freebsd-current

From: Steve Kargl <sgk_at_troutmask.apl.washington.edu>
Date: Fri, 29 Apr 2022 17:12:04 UTC
On Thu, Apr 28, 2022 at 10:56:48PM -0700, Steve Kargl wrote:
> If one looks at src.conf(5), one finds
> 
>    WITH_PROFILE
>          Build profiled libraries for use with gprof(8).  This option is
>          deprecated and is not present in FreeBSD 14.
> 
> I assume that the *_p.a libraries will no longer be built and
> installed on FreeBSD 14 and later.  Is this correct?
> 

Empirical evidence suggests that src.conf(5) manpage is
incorrect.  Adding WITH_PROFILE to /etc/src.conf, 

cd msun
cd make clean && make
ls /usr/obj/usr/src/amd64.amd64/lib/msun/libm*
/usr/obj/usr/src/amd64.amd64/lib/msun/libm.a
/usr/obj/usr/src/amd64.amd64/lib/msun/libm.so@
/usr/obj/usr/src/amd64.amd64/lib/msun/libm.so.5*
/usr/obj/usr/src/amd64.amd64/lib/msun/libm_p.a

so libm_p.a is built.  I haven't tried to install it.

git blame share/man/man5/src.conf.5
...
f94360971e64 (Ed Maste 2021-06-28 17:30:48 -0400 1392)
f94360971e64 (Ed Maste  2021-06-28 17:30:48 -0400 1393)

git log -r f94360971e64
commit f94360971e649fa684ef3b7e72839b59c7242bdb
Author: Ed Maste <emaste@FreeBSD.org>
Date:   Mon Jun 28 17:30:48 2021 -0400

    Clarify notice for profiled libraries in FreeBSD 14

Well, that certainly clarifies the situation.

Could someone please fix src.conf(5)?

-- 
Steve