From 488cdf5c01dcf1123c0710d01127983d0ea0e104 Mon Sep 17 00:00:00 2001 From: emaste Date: Wed, 24 Aug 2016 17:15:32 +0000 Subject: [PATCH] Don't build libdevdctl if MK_CXX is no --- lib/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/Makefile b/lib/Makefile index 32b1761e7895..cc2ee99fc480 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -43,7 +43,7 @@ SUBDIR= ${SUBDIR_BOOTSTRAP} \ libcompat \ libcrypt \ libdevctl \ - libdevdctl \ + ${_libdevdctl} \ libdevinfo \ libdevstat \ libdpv \ @@ -187,6 +187,10 @@ _clang= clang _cuse= libcuse .endif +.if ${MK_CXX} != "no" +_libdevdctl= libdevdctl +.endif + .if ${MK_TOOLCHAIN} != "no" _libelftc= libelftc _libpe= libpe