Page MenuHomeFreeBSD

libpmc: Use LIB_CXX instead of explicit LDADD to link a C++ library.
ClosedPublic

Authored by jhb on Mar 22 2023, 2:46 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Dec 30, 7:43 PM
Unknown Object (File)
Nov 27 2025, 1:53 PM
Unknown Object (File)
Nov 17 2025, 9:59 PM
Unknown Object (File)
Nov 2 2025, 2:39 AM
Unknown Object (File)
Oct 30 2025, 6:44 AM
Unknown Object (File)
Oct 29 2025, 1:40 PM
Unknown Object (File)
Oct 23 2025, 2:12 AM
Unknown Object (File)
Oct 21 2025, 6:13 AM
Subscribers

Details

Summary

This uses the C++ compiler as the linker instead of the C compiler
letting the compiler driver pick the right libraries. This is a no-op
on main and stable/13 but matters for stable/12 where the current
logic breaks for external GCC since it tries to use a non-existent
libstdc++.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 50509
Build 47400: arc lint + arc unit