From owner-svn-src-all@FreeBSD.ORG Tue Mar 2 20:34:02 2010 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D0BCE106566B; Tue, 2 Mar 2010 20:34:02 +0000 (UTC) (envelope-from juli@clockworksquid.com) Received: from mail-bw0-f216.google.com (mail-bw0-f216.google.com [209.85.218.216]) by mx1.freebsd.org (Postfix) with ESMTP id 050318FC08; Tue, 2 Mar 2010 20:34:01 +0000 (UTC) Received: by bwz8 with SMTP id 8so615831bwz.3 for ; Tue, 02 Mar 2010 12:33:54 -0800 (PST) MIME-Version: 1.0 Sender: juli@clockworksquid.com Received: by 10.102.183.40 with SMTP id g40mr5277109muf.85.1267562033333; Tue, 02 Mar 2010 12:33:53 -0800 (PST) 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> From: Juli Mallett Date: Tue, 2 Mar 2010 12:33:32 -0800 X-Google-Sender-Auth: 00fd33cfce3cb6f0 Message-ID: To: "M. Warner Losh" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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 X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Mar 2010 20:34:02 -0000 On Tue, Mar 2, 2010 at 12:19, M. Warner Losh 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