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
F153100829: D39197.id119227.diff
Sun, Apr 19, 3:48 AM
F153044711: D39197.id.diff
Sat, Apr 18, 7:52 PM
F152951311: D39197.id119346.diff
Sat, Apr 18, 7:10 AM
Unknown Object (File)
Thu, Apr 16, 11:49 AM
Unknown Object (File)
Tue, Apr 7, 9:58 PM
Unknown Object (File)
Fri, Mar 20, 6:53 AM
Unknown Object (File)
Fri, Mar 20, 6:52 AM
Unknown Object (File)
Mar 18 2026, 11:17 PM
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