Date: Sun, 1 Apr 2012 14:09:35 +0100 From: Chris Rees <crees@freebsd.org> To: Julien Laffaye <jlaffaye@freebsd.org> Cc: ports@freebsd.org, lev@freebsd.org Subject: Re: BUILD_DEPENDS and libraries -- how to express build-time-only dependency on library? Message-ID: <CADLo839pOAcB%2BuW%2BMCxnCNOhFZde7H3AjHv7TiaPiPw%2BiTTsDw@mail.gmail.com> In-Reply-To: <4F785246.60804@freebsd.org> References: <792848519.20120401165840@serebryakov.spb.ru> <4F785246.60804@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 1 April 2012 14:04, Julien Laffaye <jlaffaye@freebsd.org> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CADLo839pOAcB%2BuW%2BMCxnCNOhFZde7H3AjHv7TiaPiPw%2BiTTsDw>