FreeBSD Port: ruby18-1.8.2_2

Michael Nottebrock michaelnottebrock at gmx.net
Wed Feb 23 10:47:41 PST 2005


On Wednesday, 23. February 2005 18:14, Johnny Lam wrote:
> What do I need to do in the following cases for each
> release of FreeBSD?

From bsd.port.mk:

.if ${OSVERSION} < 500016
PTHREAD_CFLAGS?=        -D_THREAD_SAFE
PTHREAD_LIBS?=          -pthread
.elif ${OSVERSION} < 502102
PTHREAD_CFLAGS?=        -D_THREAD_SAFE
PTHREAD_LIBS?=          -lc_r
.else
PTHREAD_CFLAGS?=
PTHREAD_LIBS?=          -pthread
.endif

< 500016 is more or less 4.x, 5.0-RELEASE is 500043.

< 502102 is up and including 5.2.1-RELEASE (and 5-CURRENT up to 
5.3-BETA-something). Note that none of the releases in this particular range 
are supported anymore and developers are best off ignoring their existence 
and idiosyncrasies wrt to pthreads completely.

So, for all currently supported releases and 6-CURRENT, it's pretty easy: 
Everything that uses pthreads is compiled/linked with -pthread and pthread 
symbols must always be resolved through executables, even if the executable 
does not use pthreads itself but links to a shared library that does.

-- 
   ,_,   | Michael Nottebrock               | lofi at freebsd.org
 (/^ ^\) | FreeBSD - The Power to Serve     | http://www.freebsd.org
   \u/   | K Desktop Environment on FreeBSD | http://freebsd.kde.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20050223/446ecd6a/attachment.bin


More information about the freebsd-ports mailing list