From owner-freebsd-questions@FreeBSD.ORG Wed May 20 20:57:17 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1E2A41065708 for ; Wed, 20 May 2009 20:57:17 +0000 (UTC) (envelope-from mel.flynn+fbsd.questions@mailing.thruhere.net) Received: from mailhub.rachie.is-a-geek.net (rachie.is-a-geek.net [66.230.99.27]) by mx1.freebsd.org (Postfix) with ESMTP id DF3098FC17 for ; Wed, 20 May 2009 20:57:16 +0000 (UTC) (envelope-from mel.flynn+fbsd.questions@mailing.thruhere.net) Received: from sarevok.dnr.servegame.org (mailhub.lan.rachie.is-a-geek.net [192.168.2.11]) by mailhub.rachie.is-a-geek.net (Postfix) with ESMTP id AC3387E837; Wed, 20 May 2009 12:57:14 -0800 (AKDT) From: Mel Flynn To: freebsd-questions@freebsd.org, Polytropon Date: Wed, 20 May 2009 22:56:57 +0200 User-Agent: KMail/1.11.3 (FreeBSD/8.0-CURRENT; KDE/4.2.3; i386; ; ) References: <20090520215702.826770e3.freebsd@edvax.de> In-Reply-To: <20090520215702.826770e3.freebsd@edvax.de> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200905202256.57922.mel.flynn+fbsd.questions@mailing.thruhere.net> Cc: francis keyes , Chuck Robey Subject: Re: compiling FreeBSD date on Linux X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 May 2009 20:57:17 -0000 #warning "Pedantic mode on" #define TOPIC "BSD build system tricks" On Wednesday 20 May 2009 21:57:02 Polytropon wrote: > > DPADD= ${LIBUTIL} > > Needs to compile what ${LIBUTIL} point to, usually the > libutil directory in the src/ tree. This is the actual build dependency and the var is defined in bsd.libnames.mk. > > > LDADD= -lutil > > Additional info for the linker: link against libutil. > This indicates that libutil is a build dependency for > the date program. It's a linker statement, while it's logical that libutil has to be built before it can be linked against, this does in fact not have to be the same libutil, so what this line really cares about is that libutil.so or libutil.a is resolvable via the various linker rules. One can in fact do: LDFLAGS=-L/usr/local/lib LDADD=${LIBUTIL} -lutil This will link the static libutil from bsd.libnames.mk and then try to link with /usr/local/lib/libutil.so, before looking elsewhere. -- Mel