BUILD_DEPENDS and libraries -- how to express build-time-only dependency on library?

Chris Rees crees at freebsd.org
Sun Apr 1 16:59:50 UTC 2012


On 1 April 2012 17:53, Lev Serebryakov <lev at freebsd.org> wrote:
> Hello, Julien.
> You wrote 1 апреля 2012 г., 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=${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 :(

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

Chris


More information about the freebsd-ports mailing list