From owner-freebsd-ports@FreeBSD.ORG Sun Apr 1 16:54:08 2012 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6B6EE106564A; Sun, 1 Apr 2012 16:54:08 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from onlyone.friendlyhosting.spb.ru (onlyone.friendlyhosting.spb.ru [46.4.40.135]) by mx1.freebsd.org (Postfix) with ESMTP id 268E08FC16; Sun, 1 Apr 2012 16:54:07 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (89.112.15.178.pppoe.eltel.net [89.112.15.178]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.friendlyhosting.spb.ru (Postfix) with ESMTPA id 46B684AC1C; Sun, 1 Apr 2012 20:54:06 +0400 (MSK) Date: Sun, 1 Apr 2012 20:53:58 +0400 From: Lev Serebryakov Organization: FreeBSD X-Priority: 3 (Normal) Message-ID: <498407961.20120401205358@serebryakov.spb.ru> To: Julien Laffaye In-Reply-To: <4F785246.60804@freebsd.org> References: <792848519.20120401165840@serebryakov.spb.ru> <4F785246.60804@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251 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 Reply-To: lev@FreeBSD.org List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Apr 2012 16:54:08 -0000 Hello, Julien. You wrote 1 =E0=EF=F0=E5=EB=FF 2012 =E3., 17:04:06: >> 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. >> But BUILD_DEPENDS search for files at absolute pathname or for >> executables. >> Is it possible to express build-time-only dependency on library? > BUILD_DEPENDS=3D${LOCALBASE}/lib/libfoo.a:${PORTSDIR}/foo/libfoo ? It works, but here are other problem: if iconv or gettext or something like this are used, they added after all libs anyway :( --=20 // Black Lion AKA Lev Serebryakov