[Bug 256874] lang/gcc*: stop linking against _p.a libraries
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 16 Feb 2025 12:00:48 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=256874 Gerald Pfeifer <gerald@FreeBSD.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|toolchain@FreeBSD.org |gerald@FreeBSD.org CC| |gerald@FreeBSD.org, | |salvadore@freebsd.org Resolution|--- |FIXED Status|Open |Closed --- Comment #3 from Gerald Pfeifer <gerald@FreeBSD.org> --- This actually got addressed upstream with the following commit of yours truely of a patch contributed by Andreas Tobler. Thank you, Andreas! 48abb540701447b0cd9df7542720ab65a34fc1b1 Author: Andreas Tobler <andreast@gcc.gnu.org> AuthorDate: Sun Jun 9 23:18:04 2024 +0200 Commit: Gerald Pfeifer <gerald@pfeifer.com> CommitDate: Sun Jun 9 23:18:04 2024 +0200 FreeBSD: Stop linking _p libs for -pg as of FreeBSD 14 As of FreeBSD version 14, FreeBSD no longer provides profiled system libraries like libc_p and libpthread_p. Stop linking against them if the FreeBSD major version is 14 or more. gcc: * config/freebsd-spec.h: Change fbsd-lib-spec for FreeBSD > 13, do not link against profiled system libraries if -pg is invoked. Add a define to note about this change. * config/aarch64/aarch64-freebsd.h: Use the note to inform if -pg is invoked on FreeBSD > 13. * config/arm/freebsd.h: Likewise. * config/i386/freebsd.h: Likewise. * config/i386/freebsd64.h: Likewise. * config/riscv/freebsd.h: Likewise. * config/rs6000/freebsd64.h: Likewise. * config/rs6000/sysv4.h: Likeise. -- You are receiving this mail because: You are the assignee for the bug.