Fixed "make checkdpadd" (missing library dependencies).

Approved by:	re (kensmith)
This commit is contained in:
Ruslan Ermilov 2007-10-01 18:15:11 +00:00
parent 63ebea533e
commit 71ce49ae8d
6 changed files with 10 additions and 9 deletions

View File

@ -23,6 +23,7 @@ PRECIOUSLIB=
#
# Only link with static libgcc.a (no libgcc_eh.a).
#
DPADD+= ${LIBGCC}
LDFLAGS+= -nodefaultlibs
LDADD+= -lgcc

View File

@ -120,11 +120,7 @@ MINUSLPAM+= -lypclnt
LIBPANEL?= ${DESTDIR}${LIBDIR}/libpanel.a
LIBPCAP?= ${DESTDIR}${LIBDIR}/libpcap.a
LIBPMC?= ${DESTDIR}${LIBDIR}/libpmc.a
.if defined(DEFAULT_THREAD_LIB)
LIBPTHREAD?= ${DESTDIR}${LIBDIR}/${DEFAULT_THREAD_LIB}.a
.else
LIBPTHREAD?= ${DESTDIR}${LIBDIR}/libthr.a
.endif
LIBPTHREAD?= ${DESTDIR}${LIBDIR}/libpthread.a
LIBRADIUS?= ${DESTDIR}${LIBDIR}/libradius.a
LIBREADLINE?= ${DESTDIR}${LIBDIR}/libreadline.a
LIBROKEN?= ${DESTDIR}${LIBDIR}/libroken.a

View File

@ -40,8 +40,12 @@ PROG= ${PROG_CXX}
# If there are Objective C sources, link with Objective C libraries.
.if !empty(SRCS:M*.m)
OBJCLIBS?= -lobjc -lpthread
.if defined(OBJCLIBS)
LDADD+= ${OBJCLIBS}
.else
DPADD+= ${LIBOBJC} ${LIBPTHREAD}
LDADD+= -lobjc -lpthread
.endif
.endif
OBJS+= ${SRCS:N*.h:R:S/$/.o/g}

View File

@ -11,7 +11,7 @@ CFLAGS+= -I${.CURDIR}
WARNS?= 6
DEBUG_FLAGS= -g
DPADD= ${LIBBLUETOOTH} ${LIBSDP}
DPADD= ${LIBBLUETOOTH} ${LIBUSBHID}
LDADD= -lbluetooth -lusbhid
.include <bsd.prog.mk>

View File

@ -12,7 +12,7 @@ kernconf.c: kernconf.tmpl
WARNS?= 6
CFLAGS+= -I. -I${.CURDIR}
DPADD= ${LIBL}
DPADD= ${LIBL} ${LIBSBUF}
LDADD= -ll -lsbuf
CLEANFILES+= kernconf.c

View File

@ -5,7 +5,7 @@
PROG= pmcstat
MAN= pmcstat.8
DPADD= ${LIBPMC} ${LIBM}
DPADD= ${LIBKVM} ${LIBPMC} ${LIBM}
LDADD= -lkvm -lpmc -lm
WARNS?= 6