diff options
author | Alan Somers <asomers@FreeBSD.org> | 2021-02-15 22:51:31 +0000 |
---|---|---|
committer | Alan Somers <asomers@FreeBSD.org> | 2021-02-21 20:42:51 +0000 |
commit | 26b11d047d207d9d8859a03e582efc0c01c64f85 (patch) | |
tree | 100b150bd430842df961df38b12facb4449c88c9 | |
parent | a310973472b56a1c224ba76ffaa5adff7211f244 (diff) | |
download | src-26b11d047d207d9d8859a03e582efc0c01c64f85.tar.gz src-26b11d047d207d9d8859a03e582efc0c01c64f85.zip |
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++.
Approved by: re (gjb)
Reported-by: Dom Dwyer <dom@itsallbroken.com>
Reviewed By: vangyzen
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D28550
(cherry picked from commit 04e34c0202ea50cea67d5779f54bc612c74e6532)
-rw-r--r-- | lib/libpmc/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libpmc/Makefile b/lib/libpmc/Makefile index 01554e9b1526..42aa14e58471 100644 --- a/lib/libpmc/Makefile +++ b/lib/libpmc/Makefile @@ -6,6 +6,7 @@ SRCS= libpmc.c pmclog.c libpmc_pmu_util.c libpmc_json.cc INCS= pmc.h pmclog.h pmcformat.h CFLAGS+= -I${SRCTOP}/${RELDIR:H}/libpmcstat +LDADD+= -lc++ .if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_ARCH} == "amd64" || \ ${MACHINE_ARCH} == "i386" |