libpmc: Use LIB_CXX instead of explicit LDADD to link a C++ library.
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++. Reviewed by: emaste MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D39197
This commit is contained in:
parent
e2427c6917
commit
c6b3f47fed
@ -1,12 +1,11 @@
|
||||
# $FreeBSD$
|
||||
|
||||
LIB= pmc
|
||||
LIB_CXX= pmc
|
||||
|
||||
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"
|
||||
EVENT_ARCH="arm64"
|
||||
|
Loading…
x
Reference in New Issue
Block a user