Subject: Re: pkg/24601
To: None <,,,>
From: None <>
List: pkgsrc-bugs
Date: 12/09/2004 15:39:36
Synopsis: threading problems with pkgsrc and FreeBSD 4 - bl3 bug?

State-Changed-From-To: open->analyzed
State-Changed-When: Thu, 09 Dec 2004 15:39:35 +0000
The current pkgsrc policy is to default to letting a package's configure
process discover the correct way to invoke the compiler and linker to
build threaded applications.  In cases where the configure process is
deficient, we must patch files to pass PTHREAD_{CFLAGS,LDFLAGS,LIBS}
in the right places.  PTHREAD_{CFLAGS,LDFLAGS,LIBS} is set appropriately
depending on the operating system if it has native pthreads, e.g.:

FreeBSD 5.x:
        PTHREAD_CFLAGS=         -pthread
        PTHREAD_LDFLAGS=        -pthread
        PTHREAD_LIBS=           -lc_r

NetBSD 2.x:
        PTHREAD_CFLAGS=         -pthread
        PTHREAD_LDFLAGS=        -pthread
        PTHREAD_LIBS=           # empty

If it's desired that a these values be automatically be appended to
the usual CFLAGS, LDFLAGS, and LIBS values passed to the configure
and build processes, then a package that uses buildlink3 should set