Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Feb 2004 10:08:44 -0600
From:      Jonathan Fosburgh <syjef@mdanderson.org>
To:        freebsd-ports@freebsd.org
Cc:        Alex Dupre <ale@freebsd.org>
Subject:   Re: libpthread report
Message-ID:  <200402051008.49141.syjef@mdanderson.org>
In-Reply-To: <4022674C.60109@FreeBSD.org>
References:  <4022674C.60109@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--Boundary-00=_MqmIAuhsHVXiL+X
Content-Type: Text/Plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

=2D----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thursday 05 February 2004 09:54, Alex Dupre wrote:
> I have recompiled every port (about 200, except openoffice) after the
> switch to libpthread and this is the report of what is not correctly
> working:
>
> 1) libGL (XFree86-4-libraries) still uses libc_r. This causes libglut
> linked to libc_r and xscreensaver linked to libc_r and libpthread (plus
> some XFree86-4-client binaries GL related linked to libc_r). I think
> this can be solved modifying the XFree86 imakefile threads template
> (this is the reason for CC: x11)
>

There is probably a better way to do this now that we have -lpthread, but t=
he=20
attached patch is essentially what I did to make XFree86-libraries link=20
against kse.  Apply this to xc/config/cf/FreeBSD.cf.  It should link=20
correctly against libpthread.

I assume this will change when we move to the fd.o packages.

=2D --=20
Jonathan Fosburgh
AIX and Storage Administrator
UT MD Anderson Cancer Center
Houston, TX=20
=2D----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQFAImqRqUvQmqp7omYRAlzGAKCG0+qxneeMMcPybGvlt/HjaWe2FgCdHeSm
DyQ0oH3YpLfE6v8EU2FRpqY=3D
=3DIb7i
=2D----END PGP SIGNATURE-----

--Boundary-00=_MqmIAuhsHVXiL+X
Content-Type: text/x-diff;
  charset="iso-8859-1";
  name="patch-fbsd_cf"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename="patch-fbsd_cf"

--- FreeBSD.cf.orig	Thu Feb  5 10:04:01 2004
+++ FreeBSD.cf	Thu Feb  5 10:04:13 2004
@@ -106,7 +106,7 @@
 #   define NeedUIThrStubs          YES
 #  endif
 #  if (OSRelVersion >= 500016)
-#   define ThreadsLibraries	-lc_r
+#   define ThreadsLibraries	-lpthread
 #  else
 #   define ThreadsLibraries	-pthread
 #  endif

--Boundary-00=_MqmIAuhsHVXiL+X--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200402051008.49141.syjef>