diff --git a/share/mk/bsd.dep.mk b/share/mk/bsd.dep.mk index a360f60f50b3..a15a70dc250a 100644 --- a/share/mk/bsd.dep.mk +++ b/share/mk/bsd.dep.mk @@ -122,7 +122,7 @@ ${_YC:R}.o: ${_YC} # DTrace probe definitions # libelf is currently needed for drti.o -.if !empty(${SRCS:M*.d}) +.if ${SRCS:M*.d} LDFLAGS+= -lelf LDADD+= ${LIBELF} CFLAGS+= -D_DTRACE_VERSION=1 -I${.OBJDIR}