Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 1 Apr 2012 17:59:18 +0100
From:      Chris Rees <crees@freebsd.org>
To:        lev@freebsd.org
Cc:        ports@freebsd.org, Julien Laffaye <jlaffaye@freebsd.org>
Subject:   Re: BUILD_DEPENDS and libraries -- how to express build-time-only dependency on library?
Message-ID:  <CADLo83-nr-QAZ1o7GY6CPMZBW0aEwGJw94bgq59r4NBLiOO_Uw@mail.gmail.com>
In-Reply-To: <498407961.20120401205358@serebryakov.spb.ru>
References:  <792848519.20120401165840@serebryakov.spb.ru> <4F785246.60804@freebsd.org> <498407961.20120401205358@serebryakov.spb.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
On 1 April 2012 17:53, Lev Serebryakov <lev@freebsd.org> wrote:
> Hello, Julien.
> You wrote 1 =D0=B0=D0=BF=D1=80=D0=B5=D0=BB=D1=8F 2012 =D0=B3., 17:04:06:
>
>>> =C2=A0 =C2=A0In case of static build of ported program, port need to ha=
ve
>>> BUILD_DEPENDS on libraries. LIB_DEPENDS is not suitable here, because
>>> inc ase of static linkage, there will no dependency on livbrary in
>>> runtime.
>>> =C2=A0 =C2=A0But BUILD_DEPENDS search for files at absolute pathname or=
 for
>>> executables.
>>> =C2=A0 =C2=A0Is it possible to express build-time-only dependency on li=
brary?
>> BUILD_DEPENDS=3D${LOCALBASE}/lib/libfoo.a:${PORTSDIR}/foo/libfoo ?
> =C2=A0It works, but here are other problem: if iconv or gettext or
> something like this are used, they added after all libs anyway :(

Well, don't iconv and gettext require it?  In that case it needs
registering.  Otherwise iconv and gettext should have their deps
fixed....

Chris



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CADLo83-nr-QAZ1o7GY6CPMZBW0aEwGJw94bgq59r4NBLiOO_Uw>