Date: Wed, 27 Nov 2002 17:53:17 +0200 From: Peter Pentchev <roam@ringlet.net> To: portmgr@FreeBSD.org Cc: ports@FreeBSD.org Subject: [PATCH] PTHREAD_CFLAGS/LIBS on sparc64 Message-ID: <20021127155317.GG375@straylight.oblivion.bg>
next in thread | raw e-mail | index | archive | help
--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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021127155317.GG375>