DragonFly users List (threaded) for 2006-04
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
Re: using pkgsrc libs
On Thu, 27 Apr 2006, Terry Tree wrote:
> How to I add /usr/pkg/lib into the search path for the dynamic loader ?
>
> Also how do I add the /usr/pkg/include directory into the include path
> for gcc ? Right now I'm doing #include "/usr/pkg/include/gdbm.h"
> where as I'd like to do #include <gdbm.h>
Or instead of modifying gcc's setup, just use:
-I/usr/pkg/include
> # gcc -o main main.c -L/usr/pkg/lib -lgdbm
> # ./main test
> /usr/libexec/ld-elf.so.2: Shared object "libgdbm.so.3" not found,
> required by "main"
Also add:
-Wl,-R/usr/pkg/lib
Or you can use LD_LIBRARY_PATH environment variable. See ld-elf.so(1) man
page.
Or setup your /var/run/ld-elf.so.hints ELF hints file using ldconfig and
/etc/ld-elf.so.conf. See ldconfig(8) man page. And see /etcv/rc.d/ldconfig
man page and settings from /etc/defaults/rc.conf.
I don't think you should use the ldconfig way though.
Jeremy C. Reed
echo ':6DB6=88>?;@69876tA=AC8BB5tA6487><' | tr '4-F' 'wu rofIn.lkigemca'
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]