From owner-freebsd-arch@FreeBSD.ORG Wed May 8 14:42:48 2013 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 80687838 for ; Wed, 8 May 2013 14:42:48 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from mail-ie0-x229.google.com (mail-ie0-x229.google.com [IPv6:2607:f8b0:4001:c03::229]) by mx1.freebsd.org (Postfix) with ESMTP id 4EE2A2C8 for ; Wed, 8 May 2013 14:42:48 +0000 (UTC) Received: by mail-ie0-f169.google.com with SMTP id u16so3408580iet.28 for ; Wed, 08 May 2013 07:42:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:sender:subject:mime-version:content-type:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to:x-mailer:x-gm-message-state; bh=GCJ1H6kmge+EXXGWw5TZ6hKyC5+SZoGsQQDIBoBgjZM=; b=jQzxgIXEOPec9ced3Y4mtnEFEntTyk5DWpSFIq7pLFqWtrWX11+RMzobE9o3NLBT3q rpwZxQJc/2zmf/md1SdJtobt2FVvLhpw4pJE+ZOAC6HQl9oAITn41DY1fk80Qkj9XNAI 2BPkBRN3Qi2QUB+/qtnEGoNIrnbOO+6cPQwB4pLTF/pPTU6qXzSGtpHVRKsxTyJFbiCk GJPCVWqiZFCJhTGzRls55aoSOJpSBfJ4WifBJv3j6qr/AqdCM3cSIDQd/+bAZygLAB3g zpWe85pWVvWhbcKFMYWojf5wq7vfPdkdvTNIA14zMFIC87tc2LcajSgHmvTCH6U0NkEW N/2Q== X-Received: by 10.50.109.166 with SMTP id ht6mr5904697igb.26.1368024167954; Wed, 08 May 2013 07:42:47 -0700 (PDT) Received: from 53.imp.bsdimp.com (50-78-194-198-static.hfc.comcastbusiness.net. [50.78.194.198]) by mx.google.com with ESMTPSA id j7sm882718igt.1.2013.05.08.07.42.45 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 08 May 2013 07:42:47 -0700 (PDT) Sender: Warner Losh Subject: Re: Building library that depends on another library. Mime-Version: 1.0 (Apple Message framework v1085) Content-Type: text/plain; charset=iso-8859-1 From: Warner Losh In-Reply-To: <20130508130831.GA1417@garage.freebsd.pl> Date: Wed, 8 May 2013 08:42:44 -0600 Content-Transfer-Encoding: quoted-printable Message-Id: References: <20130505201436.GJ1374@garage.freebsd.pl> <86r4hkgd04.fsf@nine.des.no> <20130507185005.GB1888@garage.freebsd.pl> <86wqr9zug3.fsf@nine.des.no> <20130508130831.GA1417@garage.freebsd.pl> To: Pawel Jakub Dawidek X-Mailer: Apple Mail (2.1085) X-Gm-Message-State: ALoCoQkMv6HUGUfvULzXrkmoMglqAb3bGoRWrmz0tQdj4oPJFrgudxY2u+dcgZ1wUzRM3obJ9W9E Cc: =?iso-8859-1?Q?Dag-Erling_Sm=F8rgrav?= , freebsd-arch@FreeBSD.org X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 May 2013 14:42:48 -0000 On May 8, 2013, at 7:08 AM, Pawel Jakub Dawidek wrote: > On Wed, May 08, 2013 at 11:34:20AM +0200, Dag-Erling Sm=F8rgrav wrote: >> Pawel Jakub Dawidek writes: >>> I came up with something like the following. Instead of: >>>=20 >>> DPADD=3D ${LIBNV} >>> LDADD=3D -lnv >>> (plus modifying src/Makefile.inc1) >>>=20 >>> I only add: >>>=20 >>> LDADD=3D -L${.OBJDIR}/../libnv -lnv >>=20 >> That breaks the non-world build. >=20 > Could you provide example? Do you mean building individual libraries > from 'make buildenv' shell? It won't relink the library if libnv is changed too. Warner