Subject: Re: Dependencies on bl3fied libraries
To: Mike M. Volokhov <mishka@apk.od.ua>
From: Juan RP <juan@xtraeme.unixbsd.org>
List: tech-pkg
Date: 04/21/2004 12:45:08
--Signature=_Wed__21_Apr_2004_12_45_08_+0200_5_sBnURw3t8CihHQ
Content-Type: text/plain; charset=US-ASCII
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

On Wed, 21 Apr 2004 13:33:09 +0300
"Mike M. Volokhov" <mishka@apk.od.ua> wrote:
[...]
> In the output above, the djvups has been linked against libjpeg. The g++
> command was finished successfuly so as it got a link to .buildlink/lib
> where libjpeg.so has stored. But ldd(1) shows the following:
> 
> work/djvulibre-3.5.12/tools/djvups:
>          -ldjvulibre-3.5 => not found
>          -ljpeg.62 => not found
>          -lstdc++.5 => /usr/lib/libstdc++.so.5
>          -lm.0 => /usr/lib/libm387.so.0
>          -lm.0 => /usr/lib/libm.so.0
>          -lgcc_s.1 => /usr/lib/libgcc_s.so.1
>          -lpthread.0 => /usr/lib/libpthread.so.0
>          -lc.12 => /usr/lib/libc.so.12
> 
> This happens if I don't pass ${LDFLAGS} (which contains -Wl,-R/usr/pkg/lib
> flag, where both libdjvulibre and libdjpeg resides) directly in
> distribution Makefile. But I think it should be passed to C compiler by a
> wrapper, or I've missing something?
> 
> And this is a cause, why /usr/pkg/qt3/lib is not available as run path.

Where was installed libdjvulibre? if it's not located in a standard
location, you'll have to use BUILDLINK_PASSTHRU_DIRS as Marc Recht said 
before.

-- 
	Juan RP <juan@xtraeme.unixbsd.org>

--Signature=_Wed__21_Apr_2004_12_45_08_+0200_5_sBnURw3t8CihHQ
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQFAhlC0ypkLYVDran0RAkQoAKC0nizniEFy4Apw72I8gg32910TGgCgohw8
oMTqUoG2bRiirvsOe+0Rc9o=
=0CDi
-----END PGP SIGNATURE-----

--Signature=_Wed__21_Apr_2004_12_45_08_+0200_5_sBnURw3t8CihHQ--