Correct the way that libelf is linked when USDT is used.

This commit is contained in:
Mark Johnston 2014-10-01 04:28:39 +00:00
parent 41c16f32c1
commit 721dae3a52
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=272346

View File

@ -123,8 +123,8 @@ ${_YC:R}.o: ${_YC}
# DTrace probe definitions
# libelf is currently needed for drti.o
.if ${SRCS:M*.d}
LDFLAGS+= -lelf
LDADD+= ${LIBELF}
LDADD+= -lelf
DPADD+= ${LIBELF}
CFLAGS+= -I${.OBJDIR}
.endif
.for _DSRC in ${SRCS:M*.d:N*/*}