From owner-freebsd-ports Wed Nov 27 7:53:35 2002 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 CD57037B401 for ; Wed, 27 Nov 2002 07:53:32 -0800 (PST) Received: from straylight.ringlet.net (discworld.nanolink.com [217.75.135.248]) by mx1.FreeBSD.org (Postfix) with SMTP id 18CBA43EA9 for ; Wed, 27 Nov 2002 07:53:29 -0800 (PST) (envelope-from roam@ringlet.net) Received: (qmail 55307 invoked by uid 1000); 27 Nov 2002 15:53:17 -0000 Date: Wed, 27 Nov 2002 17:53:17 +0200 From: Peter Pentchev To: portmgr@FreeBSD.org Cc: ports@FreeBSD.org Subject: [PATCH] PTHREAD_CFLAGS/LIBS on sparc64 Message-ID: <20021127155317.GG375@straylight.oblivion.bg> Mail-Followup-To: portmgr@FreeBSD.org, ports@FreeBSD.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="vA66WO2vHvL/CRSR" Content-Disposition: inline User-Agent: Mutt/1.5.1i Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --vA66WO2vHvL/CRSR Content-Type: multipart/mixed; boundary="so9zsI5B81VjUb/o" Content-Disposition: inline --so9zsI5B81VjUb/o Content-Type: text/plain; charset=windows-1251 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, Since it seems that there is no functioning threads library on sparc64 for the present, and there is neither libc_r nor libpthread, could you consider the following patch for bsd.port.mk that will fix ports trying to use PTHREAD_CFLAGS and PTHREAD_LIBS on sparc64? A prime example is the security/mhash port, which currently fails during the configure stage, as it tries to pass -lc_r to the linker, and belatedly discovers that there is no spoon^Wlibc_r... I guess this one might count as a build fix on -CURRENT? G'luck, Peter --=20 Peter Pentchev roam@ringlet.net roam@FreeBSD.org PGP key: http://people.FreeBSD.org/~roam/roam.key.asc Key fingerprint FDBA FD79 C26F 3C51 C95E DF9E ED18 B68D 1619 4553 This sentence every third, but it still comprehensible. --so9zsI5B81VjUb/o Content-Type: text/plain; charset=windows-1251 Content-Disposition: attachment; filename="Mk-bsd.port.mk-pthread.patch" Content-Transfer-Encoding: quoted-printable Index: ports/Mk/bsd.port.mk =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /home/ncvs/ports/Mk/bsd.port.mk,v retrieving revision 1.434 diff -u -r1.434 bsd.port.mk --- ports/Mk/bsd.port.mk 26 Nov 2002 20:05:56 -0000 1.434 +++ ports/Mk/bsd.port.mk 27 Nov 2002 15:52:26 -0000 @@ -1273,12 +1273,17 @@ MAKEFILE?=3D Makefile MAKE_ENV+=3D PREFIX=3D${PREFIX} LOCALBASE=3D${LOCALBASE} X11BASE=3D${X11B= ASE} MOTIFLIB=3D"${MOTIFLIB}" LIBDIR=3D"${LIBDIR}" CFLAGS=3D"${CFLAGS}" CXX= FLAGS=3D"${CXXFLAGS}" =20 +.if ${ARCH} !=3D sparc64 .if ${OSVERSION} < 500016 PTHREAD_CFLAGS=3D -D_THREAD_SAFE PTHREAD_LIBS=3D -pthread .else PTHREAD_CFLAGS=3D -D_THREAD_SAFE PTHREAD_LIBS=3D -lc_r +.endif +.else +PTHREAD_CFLAGS=3D -DTHREAD_SAFE +PTHREAD_LIBS=3D .endif =20 .if exists(/usr/bin/fetch) --so9zsI5B81VjUb/o-- --vA66WO2vHvL/CRSR Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE95Opt7Ri2jRYZRVMRAkp1AJ97AqPRbG7Hd3+whAa3XOZRWZHHNACbB+n9 ROEz3ktRXXlzmjbN1u3vSF8= =U73n -----END PGP SIGNATURE----- --vA66WO2vHvL/CRSR-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message