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

Chris Rees crees at freebsd.org
Sun Apr 1 13:10:07 UTC 2012


On 1 April 2012 14:04, Julien Laffaye <jlaffaye at freebsd.org> wrote:
> On 4/1/2012 2:58 PM, Lev Serebryakov wrote:
>>
>> Hello, Ports.
>>
>>   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 ?

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


More information about the freebsd-ports mailing list