From owner-freebsd-ports@FreeBSD.ORG Wed Feb 23 18:47:41 2005 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A7A8E16A4CE for ; Wed, 23 Feb 2005 18:47:41 +0000 (GMT) Received: from mail.gmx.net (imap.gmx.net [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id A1F9D43D2D for ; Wed, 23 Feb 2005 18:47:40 +0000 (GMT) (envelope-from michaelnottebrock@gmx.net) Received: (qmail invoked by alias); 23 Feb 2005 18:47:39 -0000 Received: from p508BFA06.dip.t-dialin.net (EHLO lofi.dyndns.org) (80.139.250.6) by mail.gmx.net (mp017) with SMTP; 23 Feb 2005 19:47:39 +0100 X-Authenticated: #443188 Received: from [192.168.8.4] (lofi@kiste.my.domain [192.168.8.4]) (authenticated bits=0) by lofi.dyndns.org (8.12.10/8.12.10) with ESMTP id j1NIlZmb089980 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Wed, 23 Feb 2005 19:47:36 +0100 (CET) (envelope-from michaelnottebrock@gmx.net) From: Michael Nottebrock To: Johnny Lam Date: Wed, 23 Feb 2005 19:47:31 +0100 User-Agent: KMail/1.7.2 References: <64348.207.219.213.162.1109011818.squirrel@207.219.213.162> <200502231749.22024.michaelnottebrock@gmx.net> <421CBA04.2070002@NetBSD.org> In-Reply-To: <421CBA04.2070002@NetBSD.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1264802.uZB5ghUje0"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200502231947.34918.michaelnottebrock@gmx.net> X-Virus-Scanned: by amavisd-new X-Y-GMX-Trusted: 0 cc: freebsd-ports@freebsd.org Subject: Re: FreeBSD Port: ruby18-1.8.2_2 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Feb 2005 18:47:41 -0000 --nextPart1264802.uZB5ghUje0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 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? =46rom bsd.port.mk: =2Eif ${OSVERSION} < 500016 PTHREAD_CFLAGS?=3D -D_THREAD_SAFE PTHREAD_LIBS?=3D -pthread =2Eelif ${OSVERSION} < 502102 PTHREAD_CFLAGS?=3D -D_THREAD_SAFE PTHREAD_LIBS?=3D -lc_r =2Eelse PTHREAD_CFLAGS?=3D PTHREAD_LIBS?=3D -pthread =2Eendif < 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=20 5.3-BETA-something). Note that none of the releases in this particular rang= e=20 are supported anymore and developers are best off ignoring their existence= =20 and idiosyncrasies wrt to pthreads completely. So, for all currently supported releases and 6-CURRENT, it's pretty easy:=20 Everything that uses pthreads is compiled/linked with -pthread and pthread= =20 symbols must always be resolved through executables, even if the executable= =20 does not use pthreads itself but links to a shared library that does. =2D-=20 ,_, | Michael Nottebrock | lofi@freebsd.org (/^ ^\) | FreeBSD - The Power to Serve | http://www.freebsd.org \u/ | K Desktop Environment on FreeBSD | http://freebsd.kde.org --nextPart1264802.uZB5ghUje0 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQBCHM/GXhc68WspdLARAl4TAJ0VC8BtYQzm5BjEoIbr2OYpspOeUwCfbpsJ 6CiCMzzCopXqUX2eGmY3UG0= =GkXK -----END PGP SIGNATURE----- --nextPart1264802.uZB5ghUje0--