git: 9e06b34bb5d3 - stable/13 - Add deprecation notice for WITH_PROFILE option

Ed Maste emaste at FreeBSD.org
Wed Jul 7 13:18:23 UTC 2021


The branch stable/13 has been updated by emaste:

URL: https://cgit.FreeBSD.org/src/commit/?id=9e06b34bb5d3544915ebea1a3f343f915004bbe1

commit 9e06b34bb5d3544915ebea1a3f343f915004bbe1
Author:     Ed Maste <emaste at FreeBSD.org>
AuthorDate: 2021-06-27 17:21:26 +0000
Commit:     Ed Maste <emaste at FreeBSD.org>
CommitDate: 2021-07-07 13:17:06 +0000

    Add deprecation notice for WITH_PROFILE option
    
    As discussed on freebsd-current [1] and freebsd-arch [2] and review
    D30833, FreeBSD 14 will ship without the _p.a libraries built with -pg.
    Both upstream and base system (in commit b762974cf4b9) Clang have been
    modified to remove the special case for linking against these libraries.
    
    Clang's -pg support and mcount() remain, so building with -pg can still
    be used on code that the user builds; we just do not provide prebuilt
    libraries compiled with -pg.  A similar change is still needed for GCC.
    
    [1]  https://lists.freebsd.org/pipermail/freebsd-current/2020-January/075105.html
    [2] https://lists.freebsd.org/archives/freebsd-arch/2021-June/000016.html
    
    MFC after:      1 week
    Sponsored by:   The FreeBSD Foundation
    
    (cherry picked from commit 175841285e289edebb6603da39f02549521ce950)
    
    Clarify notice for profiled libraries in FreeBSD 14
    
    Reported by:    kevans
    Fixes:          175841285e28 ("Add deprecation notice for...")
    Sponsored by:   The FreeBSD Foundation
    
    (cherry picked from commit f94360971e649fa684ef3b7e72839b59c7242bdb)
---
 share/man/man5/src.conf.5        | 2 ++
 tools/build/options/WITH_PROFILE | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/share/man/man5/src.conf.5 b/share/man/man5/src.conf.5
index dad8d465e3fd..4f44bda093ce 100644
--- a/share/man/man5/src.conf.5
+++ b/share/man/man5/src.conf.5
@@ -1374,6 +1374,8 @@ mips/mips64.
 .It Va WITH_PROFILE
 Set to build profiled libraries for use with
 .Xr gprof 8 .
+This option is deprecated and is not present in
+.Fx 14 .
 .Pp
 This is a default setting on
 amd64/amd64, arm/armv6, arm/armv7, arm64/aarch64, i386/i386, mips/mips, powerpc/powerpc, powerpc/powerpc64, riscv/riscv64 and riscv/riscv64sf.
diff --git a/tools/build/options/WITH_PROFILE b/tools/build/options/WITH_PROFILE
index b8880d9459cc..347a3db000d1 100644
--- a/tools/build/options/WITH_PROFILE
+++ b/tools/build/options/WITH_PROFILE
@@ -1,3 +1,5 @@
 .\" $FreeBSD$
 Set to build profiled libraries for use with
 .Xr gprof 8 .
+This option is deprecated and is not present in
+.Fx 14 .


More information about the dev-commits-src-all mailing list