Skip to content

Commit

Permalink
libpmc: fix linking with C programs
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed By:	vangyzen
Differential Revision: https://reviews.freebsd.org/D28550

(cherry picked from commit 04e34c0)
  • Loading branch information
asomers committed Feb 20, 2021
1 parent f7007a7 commit 418d295
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/libpmc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ INCS= pmc.h pmclog.h pmcformat.h

CFLAGS+= -I${.CURDIR}
CWARNFLAGS.gcc+= -Wno-shadow -Wno-cast-align
LDADD+= -lc++

.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386"

Expand Down

0 comments on commit 418d295

Please sign in to comment.