Date: Mon, 15 Feb 2021 22:54:47 GMT From: Alan Somers <asomers@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 04e34c0202ea - main - libpmc: fix linking with C programs Message-ID: <202102152254.11FMsllK061841@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by asomers: URL: https://cgit.FreeBSD.org/src/commit/?id=04e34c0202ea50cea67d5779f54bc612c74e6532 commit 04e34c0202ea50cea67d5779f54bc612c74e6532 Author: Alan Somers <asomers@FreeBSD.org> AuthorDate: 2021-02-15 22:51:31 +0000 Commit: Alan Somers <asomers@FreeBSD.org> CommitDate: 2021-02-15 22:54:18 +0000 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 MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D28550 --- lib/libpmc/Makefile | 1 + 1 file changed, 1 insertion(+) 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"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202102152254.11FMsllK061841>