On Tue, Mar 2, 2010 at 12:19, M. Warner Losh <i...@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 _______________________________________________ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"