Date: Sun, 1 Apr 2012 21:22:36 +0400 From: Lev Serebryakov <lev@FreeBSD.org> To: Chris Rees <crees@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: <322863489.20120401212236@serebryakov.spb.ru> In-Reply-To: <CADLo83-nr-QAZ1o7GY6CPMZBW0aEwGJw94bgq59r4NBLiOO_Uw@mail.gmail.com> References: <792848519.20120401165840@serebryakov.spb.ru> <4F785246.60804@freebsd.org> <498407961.20120401205358@serebryakov.spb.ru> <CADLo83-nr-QAZ1o7GY6CPMZBW0aEwGJw94bgq59r4NBLiOO_Uw@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Hello, Chris. You wrote 1 =D0=B0=D0=BF=D1=80=D0=B5=D0=BB=D1=8F 2012 =D0=B3., 20:59:18: >>>> =C2=A0 =C2=A0Is it possible to express build-time-only dependency on l= ibrary? >>> 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.... My port builds with static linkage. After port is built and installed, it doesn't need any other ports in system. But if I use USE_ICONV, and, later do something like this: OLD_LIB_DEPENDS:=3D ${LIB_DEPENDS:S!^!${LOCALBASE}/lib/lib!:C!(\.[0-9= ]+)?:!.a:!} BUILD_DEPENDS+=3D ${OLD_LIB_DEPENDS} LIB_DEPENDS=3D I have proper BUILD_DEPENDS which is built from MY libraries, but iconv, gettext & Ko are in LIB_DEPENDS anyway :( --=20 // Black Lion AKA Lev Serebryakov <lev@FreeBSD.org>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?322863489.20120401212236>