Author: markj
Date: Wed Oct  1 04:28:39 2014
New Revision: 272346
URL: https://svnweb.freebsd.org/changeset/base/272346

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

Modified:
  head/share/mk/bsd.dep.mk

Modified: head/share/mk/bsd.dep.mk
==============================================================================
--- head/share/mk/bsd.dep.mk    Wed Oct  1 04:12:38 2014        (r272345)
+++ head/share/mk/bsd.dep.mk    Wed Oct  1 04:28:39 2014        (r272346)
@@ -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*/*}
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to