From owner-freebsd-arch Tue Mar 13 21: 7:54 2001 Delivered-To: freebsd-arch@freebsd.org Received: from panzer.kdm.org (panzer.kdm.org [216.160.178.169]) by hub.freebsd.org (Postfix) with ESMTP id 4EC4C37B719 for ; Tue, 13 Mar 2001 21:07:51 -0800 (PST) (envelope-from ken@panzer.kdm.org) Received: (from ken@localhost) by panzer.kdm.org (8.9.3/8.9.1) id WAA93442; Tue, 13 Mar 2001 22:07:39 -0700 (MST) (envelope-from ken) Date: Tue, 13 Mar 2001 22:07:39 -0700 From: "Kenneth D. Merry" To: Terry Lambert Cc: arch@FreeBSD.ORG Subject: Re: sbufs in userland, proposed solution Message-ID: <20010313220739.A93412@panzer.kdm.org> References: <20010313162840.A90872@panzer.kdm.org> <200103140503.WAA03185@usr05.primenet.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <200103140503.WAA03185@usr05.primenet.com>; from tlambert@primenet.com on Wed, Mar 14, 2001 at 05:03:40AM +0000 Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, Mar 14, 2001 at 05:03:40 +0000, Terry Lambert wrote: > > libcam will be complied with a dependency on libsbuf, so libsbuf will > > automatically get pulled in for applications that dynamically link with > > libcam. > > [ ... ] > > > As for applications that link statically (e.g. camcontrol), they'll have to > > add libsbuf to the link line in order to compile. > > > > There is apparantly no way around the static link problem, so this is > > something that has to be done, unless I go with one of the other two > > alternatives -- putting sbufs in libc or in libcam. > > The "library A depends on library B" approach is _supposed_ to > work with both static and dynamic linking. Outside the FreeBSD tree? From talking to John Polstra, it only works automatically with dynamic linking. There are some makefile tricks to make it sort-of happen with static linking (see the MINUSLPAM stuff in share/mk/bsd.libnames.mk) but nothing that I know of that'll make the it work automatically. If there is a way to do it, I'd like to know how, since that would save me from modifying all the ports that use libcam. Ken -- Kenneth Merry ken@kdm.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message