diff --git a/lib/libproc/Makefile b/lib/libproc/Makefile | |
index e3b2578..acd76e8 100644 | |
--- a/lib/libproc/Makefile | |
+++ b/lib/libproc/Makefile | |
@@ -18,7 +18,7 @@ CFLAGS+= -I${.CURDIR} | |
.if ${MK_CXX} == "no" | |
CFLAGS+= -DNO_CXA_DEMANGLE | |
-.elif ${MK_LIBCPLUSPLUS} != "no" | |
+.elif ${COMPILER_TYPE} == "clang" | |
LIBADD+= cxxrt | |
.else | |
LIBADD+= supcplusplus |