Convert mt(1) and libmt to LIBADD
While here fix missing link to libbsdxml for libmt Fix overlinking in mt(1) Make add an indirect libmt dependency on bsdxml to allow static linking if needed
This commit is contained in:
parent
fe1d0c2dae
commit
32e5044deb
3 changed files with 7 additions and 4 deletions
|
|
@ -5,8 +5,7 @@ SHLIBDIR?= /lib
|
|||
SRCS= mtlib.c
|
||||
INCS= mtlib.h
|
||||
|
||||
DPADD= ${LIBSBUF}
|
||||
LDADD= -lsbuf
|
||||
LIBADD= sbuf bsdxml
|
||||
|
||||
MAN= mt.3
|
||||
|
||||
|
|
|
|||
|
|
@ -111,6 +111,7 @@ _LIBRARIES= \
|
|||
md \
|
||||
memstat \
|
||||
mp \
|
||||
mt \
|
||||
nandfs \
|
||||
ncurses \
|
||||
ncursesw \
|
||||
|
|
@ -199,6 +200,7 @@ _DP_proc+= ctf
|
|||
_DP_mp= crypto
|
||||
_DP_memstat= kvm
|
||||
_DP_magic= z
|
||||
_DP_mt= bsdxml
|
||||
_DP_ldns= crypto
|
||||
.if ${MK_OPENSSL} != "no"
|
||||
_DP_fetch= ssl crypto
|
||||
|
|
@ -259,6 +261,9 @@ LDADD_atf_cxx+= ${LDADD_atf_c}
|
|||
DPADD_ipf+= ${DPADD_kvm}
|
||||
LDADD_ipf+= ${LDADD_kvm}
|
||||
|
||||
DPADD_mt+= ${DPADD_sbuf}
|
||||
LDADD_mt+= ${LDADD_sbuf}
|
||||
|
||||
# The following depends on libraries which are using pthread
|
||||
DPADD_hdb+= ${DPADD_pthread}
|
||||
LDADD_hdb+= ${LDADD_pthread}
|
||||
|
|
|
|||
|
|
@ -2,7 +2,6 @@
|
|||
# $FreeBSD$
|
||||
|
||||
PROG= mt
|
||||
DPADD= ${LIBMT} ${LIBSBUF} ${LIBBSDXML}
|
||||
LDADD= -lmt -lsbuf -lbsdxml
|
||||
LIBADD= mt
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue