Date: Tue, 2 Mar 2010 12:33:32 -0800 From: Juli Mallett <jmallett@FreeBSD.org> To: "M. Warner Losh" <imp@bsdimp.com> Cc: kostikbel@gmail.com, svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, rizzo@iet.unipi.it Subject: Re: svn commit: r204591 - in head: sbin/ipfw sys/conf sys/net sys/netinet sys/netinet/ipfw sys/netinet/ipfw/test Message-ID: <eaa228be1003021233h2a0b35b0ld46b2ca4c271f357@mail.gmail.com> In-Reply-To: <20100302.131912.119882392285757630.imp@bsdimp.com> References: <20100302185130.GC2489@deviant.kiev.zoral.com.ua> <20100302190344.GA5490@onelab2.iet.unipi.it> <20100302192845.GD2489@deviant.kiev.zoral.com.ua> <20100302.131912.119882392285757630.imp@bsdimp.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Mar 2, 2010 at 12:19, M. Warner Losh <imp@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). =A0LDADD is > used to add the library to the command line (-lutil). =A0IIRC, 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=3D 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+=3D${LIB${_lib:U}} LDADD+=3D-l${_lib} .endfor
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?eaa228be1003021233h2a0b35b0ld46b2ca4c271f357>