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)
May 24 2024, 12:49 PM
Unknown Object (File)
May 24 2024, 12:43 PM
Unknown Object (File)
May 24 2024, 4:21 AM
Unknown Object (File)
May 24 2024, 3:29 AM
Unknown Object (File)
Mar 22 2024, 10:53 AM
Unknown Object (File)
Mar 22 2024, 10:24 AM
Unknown Object (File)
Mar 8 2024, 7:36 AM
Unknown Object (File)
Mar 8 2024, 7:24 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