HomeFreeBSD

libpmc: fix linking with C programs

Description

libpmc: fix linking with C programs

Revision r334749 Added some C++ code to libpmc. It didn't change the ABI,
but it did introduce a dependency on libc++. Nobody noticed because every
program that in the base system that uses libpmc is also C++.

Reported-by: Dom Dwyer <dom@itsallbroken.com>
Reviewed By: vangyzen
Differential Revision: https://reviews.freebsd.org/D28550

(cherry picked from commit 04e34c0202ea50cea67d5779f54bc612c74e6532)

Details

Provenance
asomersAuthored on Feb 15 2021, 10:51 PM
Reviewer
vangyzen
Differential Revision
D28550: libpmc: fix linking with C programs
Parents
rG18f552e647f5: Use iflib_if_init_locked() during media change instead of iflib_init_locked().
Branches
Unknown
Tags
Unknown