HomeFreeBSD

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

Description

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

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++.

Reviewed by: emaste
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D39197

(cherry picked from commit c6b3f47fedd3f94f74cc4f7c40761b1d0e777f17)

Details

Provenance
jhbAuthored on Mar 23 2023, 4:31 PM
Reviewer
emaste
Differential Revision
D39197: libpmc: Use LIB_CXX instead of explicit LDADD to link a C++ library.
Parents
rG834fdebb56fb: mpr: don't use hardcoded value in debug branch
Branches
Unknown
Tags
Unknown