Subject: Re: pkg/12705: pkgsrc/www/mozilla for 0.8.1 fails to build on i388
To: NetBSD Bugs and PR posting List <netbsd-bugs@NetBSD.ORG>
From: Frederick Bruckman <>
List: netbsd-bugs
Date: 05/04/2001 12:05:01
On Fri, 4 May 2001, Greg A. Woods wrote:

> Re-running gmake in the worksrc directory after the failure gives:
> cc -o -shared -Wl,-soname, -Wl,-R/usr/pkg/lib/mozilla [...] -lpthread
> /usr/bin/ld: cannot open -lpthread: No such file or directory
> collect2: ld returned 1 exit status
> gmake[3]: *** [] Error 1

You realize that the package build sets ${LDFLAGS} in the environment?

If it has the same problem when built from the package directory, that
would likely be because ".../pthread/Makefile" overwrites ${LDFLAGS}.
I suggest a solution would be to identify another variable in that
file that's unique to that directory, like ${PTHREAD_LDFLAGS}, or put
one in if there isn't. Such would minimize side effects, while giving
us a knob at the top to try different pthreads libraries.