pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pkg/24601
Synopsis: threading problems with pkgsrc and FreeBSD 4 - bl3 bug?
State-Changed-From-To: open->analyzed
State-Changed-By: jlam%netbsd.org@localhost
State-Changed-When: Thu, 09 Dec 2004 15:39:35 +0000
State-Changed-Why:
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
PTHREAD_AUTO_VARS=yes.
Home |
Main Index |
Thread Index |
Old Index