Building library that depends on another library.

Warner Losh imp at bsdimp.com
Wed May 8 14:42:48 UTC 2013


On May 8, 2013, at 7:08 AM, Pawel Jakub Dawidek wrote:

> On Wed, May 08, 2013 at 11:34:20AM +0200, Dag-Erling Smørgrav wrote:
>> Pawel Jakub Dawidek <pjd at FreeBSD.org> writes:
>>> I came up with something like the following. Instead of:
>>> 
>>> DPADD=	${LIBNV}
>>> LDADD=	-lnv
>>> (plus modifying src/Makefile.inc1)
>>> 
>>> I only add:
>>> 
>>> LDADD=	-L${.OBJDIR}/../libnv -lnv
>> 
>> That breaks the non-world build.
> 
> Could you provide example? Do you mean building individual libraries
> from 'make buildenv' shell?

It won't relink the library if libnv is changed too.

Warner



More information about the freebsd-arch mailing list