From owner-freebsd-ports@FreeBSD.ORG Sun Apr 1 13:10:07 2012 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6852B1065672; Sun, 1 Apr 2012 13:10:07 +0000 (UTC) (envelope-from utisoft@gmail.com) Received: from mail-bk0-f54.google.com (mail-bk0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 884F68FC08; Sun, 1 Apr 2012 13:10:06 +0000 (UTC) Received: by bkcjc3 with SMTP id jc3so2023549bkc.13 for ; Sun, 01 Apr 2012 06:10:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=22DlVBUjIQzIbgBHGjdg/sTPhqTpnhxKhN1L+g4ekwY=; b=QAhWm5KFw0gtCqMs1wAHLcJQ5AL7PHnwzbH3qx7h/Ouu2lTGrTDjiqkuSuyWHPRTjl WZO3O2PwabPBZDxzQ19P7nUWhZF3hQoBp4FWLeWDlrAPKopCiooGQBgZQEw3wc6TAcEO HreIxM6pGn+k4fXoasMoABkTpEqG2c2YzE5WiqE568MOG4t8oATrn78e4zXKTwFLs05h hFo/vxgZ0G4LPS9RGaYgFSTsYbaeMiYfvJ4yoxGHO4VRZjyN8s5PXz/NXFpTdfngjDHK irdthCfVyQc+GF1O5y1fPsQGlD5EFFBw8cqcHuBTswsUe0+d4K6+s9ftcPIOeviMBPNj 1ECg== Received: by 10.204.154.28 with SMTP id m28mr1979093bkw.102.1333285805398; Sun, 01 Apr 2012 06:10:05 -0700 (PDT) MIME-Version: 1.0 Sender: utisoft@gmail.com Received: by 10.204.202.142 with HTTP; Sun, 1 Apr 2012 06:09:35 -0700 (PDT) In-Reply-To: <4F785246.60804@freebsd.org> References: <792848519.20120401165840@serebryakov.spb.ru> <4F785246.60804@freebsd.org> From: Chris Rees Date: Sun, 1 Apr 2012 14:09:35 +0100 X-Google-Sender-Auth: DIluahnyB5qHt1czPngldWWeko8 Message-ID: To: Julien Laffaye Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: ports@freebsd.org, lev@freebsd.org Subject: Re: BUILD_DEPENDS and libraries -- how to express build-time-only dependency on library? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Apr 2012 13:10:07 -0000 On 1 April 2012 14:04, Julien Laffaye wrote: > On 4/1/2012 2:58 PM, Lev Serebryakov wrote: >> >> Hello, Ports. >> >> =A0 In case of static build of ported program, port need to have >> BUILD_DEPENDS on libraries. LIB_DEPENDS is not suitable here, because >> inc ase of static linkage, there will no dependency on livbrary in >> runtime. >> =A0 But BUILD_DEPENDS search for files at absolute pathname or for >> executables. >> =A0 Is it possible to express build-time-only dependency on library? >> >> > BUILD_DEPENDS=3D${LOCALBASE}/lib/libfoo.a:${PORTSDIR}/foo/libfoo ? By the way, using LIB_DEPENDS is wrong for depending on static libraries anyway; LIB_DEPENDS uses ldconfig to check for them, which is for dynamic linking. Chris