Subject: Re: programming pthread compile and run
To: Hussain Ali <hali@agiservices.com>
From: Bill Squier <groo@old-ones.com>
List: netbsd-help
Date: 09/13/2001 15:25:45
On Thu, Sep 13, 2001 at 03:21:03PM -0400, Hussain Ali wrote:
> "Shared object "libpthread.so.13 not found"
> 
> are my gcc flags wrong?
> 
> FLAGS = -g3 -pedantic -Wall
> LIB = -I/usr/pkg/include -L/usr/pkg/lib -lpthread -lc
LIB= -I/usr/pkg/include -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -lpthread -lc

The runtime linker requires the path to the library as well.

-- 
Bill Squier (groo@old-ones.com)                          http://www.netbsd.org

        I know I don't deserve another chance, but this _is_ America,
        and as an American, aren't I entitled to one?  --Sideshow Bob.