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)
Fri, Oct 2, 8:57 AM
Unknown Object (File)
Tue, Sep 29, 2:07 AM
Unknown Object (File)
Aug 26 2026, 11:27 AM
Unknown Object (File)
Aug 25 2026, 10:44 AM
Unknown Object (File)
Aug 19 2026, 2:15 PM
Unknown Object (File)
Aug 19 2026, 9:53 AM
Unknown Object (File)
Aug 18 2026, 3:05 PM
Unknown Object (File)
Aug 10 2026, 10:17 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 Not Applicable
Unit
Tests Not Applicable