[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: problem building pnmtopng
From: |
Paul Jarc |
Subject: |
Re: problem building pnmtopng |
Date: |
Mon, 10 Dec 2001 15:27:19 -0500 |
User-agent: |
Gnus/5.090004 (Oort Gnus v0.04) Emacs/20.7 (i386-redhat-linux-gnu) |
Jan Nieuwenhuizen <address@hidden> wrote:
> Rune Zedeler <address@hidden> writes:
>> PNGLIB = -L$(PNGDIR) -L$(HOME)/usr/$(HOSTTYPE)/lib -lpng
>
> but (most probably) don't tell the runtime linker about
> this path.
>
> Try
>
> export LD_LIBRARY_PATH=$HOME/usr/$HOSTTYPE/lib
You can also set LD_RUN_PATH (or use ld -rpath) while building. Then
the executable will know where to find its libraries, and you won't
have to set LD_LIBRARY_PATH at runtime.
paul