summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authormarkj <markj@FreeBSD.org>2014-10-01 04:28:39 +0000
committermarkj <markj@FreeBSD.org>2014-10-01 04:28:39 +0000
commit39a5d322fa85f13ca90cfb24d92061f010447b48 (patch)
tree355ca94943410873a2b65d40849b9599d8702181 /share
parentadb942eaa997b39794ef6e40fbcbace3e33c2bf7 (diff)
downloadFreeBSD-src-39a5d322fa85f13ca90cfb24d92061f010447b48.zip
FreeBSD-src-39a5d322fa85f13ca90cfb24d92061f010447b48.tar.gz
Correct the way that libelf is linked when USDT is used.
Diffstat (limited to 'share')
-rw-r--r--share/mk/bsd.dep.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/share/mk/bsd.dep.mk b/share/mk/bsd.dep.mk
index 5ce2fa4..afc8ecb 100644
--- a/share/mk/bsd.dep.mk
+++ b/share/mk/bsd.dep.mk
@@ -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*/*}
OpenPOWER on IntegriCloud