The branch stable/12 has been updated by asomers:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=418d29545e0b98b269c346adc6931359065ffbdb

commit 418d29545e0b98b269c346adc6931359065ffbdb
Author:     Alan Somers <asom...@freebsd.org>
AuthorDate: 2021-02-15 22:51:31 +0000
Commit:     Alan Somers <asom...@freebsd.org>
CommitDate: 2021-02-20 00:43:14 +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 <d...@itsallbroken.com>
    Reviewed By:    vangyzen
    Differential Revision: https://reviews.freebsd.org/D28550
    
    (cherry picked from commit 04e34c0202ea50cea67d5779f54bc612c74e6532)
---
 lib/libpmc/Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/libpmc/Makefile b/lib/libpmc/Makefile
index 35bacb26bd11..f4b5516274be 100644
--- a/lib/libpmc/Makefile
+++ b/lib/libpmc/Makefile
@@ -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"
 
_______________________________________________
dev-commits-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/dev-commits-src-all
To unsubscribe, send any mail to "dev-commits-src-all-unsubscr...@freebsd.org"

Reply via email to