svn commit: r204591 - in head: sbin/ipfw sys/conf sys/net sys/netinet sys/netinet/ipfw sys/netinet/ipfw/test

Juli Mallett jmallett at FreeBSD.org
Tue Mar 2 20:34:02 UTC 2010


On Tue, Mar 2, 2010 at 12:19, M. Warner Losh <imp at bsdimp.com> wrote:
> : The question I do not know answer for, is why do we need LDADD.
>
> DPADD is used to add the static file (/usr/lib/libutil.a).  LDADD is
> used to add the library to the command line (-lutil).  IIRC, it isn't
> always possible to map one to the other, but I've never explored why...

We could easily do something like "USE_LIBS= util bsdxml m z" and then
in bsd.prog.mk and related

.for _lib in ${USE_LIBS}
.if !defined(LIB${_lib:U})
.error "${_lib} is not a valid library."
.endif
DPADD+=${LIB${_lib:U}}
LDADD+=-l${_lib}
.endfor


More information about the svn-src-head mailing list