Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Dec 2002 13:04:20 +0200
From:      Peter Pentchev <roam@ringlet.net>
To:        Kris Kennaway <kris@obsecurity.org>
Cc:        Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>, portmgr@FreeBSD.ORG, ports@FreeBSD.ORG
Subject:   Re: [PATCH] PTHREAD_CFLAGS/LIBS on sparc64
Message-ID:  <20021204110420.GO365@straylight.oblivion.bg>
In-Reply-To: <20021203204611.GA38099@rot13.obsecurity.org>
References:  <20021127155317.GG375@straylight.oblivion.bg> <20021203155143.22703.qmail@exxodus.fedaykin.here> <20021203204611.GA38099@rot13.obsecurity.org>

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

--D3I0HgOdJ5+6n+7I
Content-Type: multipart/mixed; boundary="lLR1BQqf7txDtYcF"
Content-Disposition: inline


--lLR1BQqf7txDtYcF
Content-Type: text/plain; charset=windows-1251
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Dec 03, 2002 at 12:46:11PM -0800, Kris Kennaway wrote:
> On Tue, Dec 03, 2002 at 01:51:21PM -0200, Mario Sergio Fujikawa Ferreira =
wrote:
>=20
> > 	Well, I apologize if I say something stupid but if a port requires
> > pthread support... not linking against it won't make the port work. It =
might
> > not even get the port to compile.
> > 	Wouldn't be better if a stub (with no internal code) version
> > of libc_r was cooked specially for sparc64? Just to see if the ports
> > build in that ARCH? Since nothing will really work until we have a
> > working thread implemention for sparc64.
>=20
> I think we can just let them fail for now, unless they have a switch
> that lets them build w/o threads support.

Okay then, how about the attached minimalistic patch for the mhash port?
It builds and works just fine on sparc64 without the -lc_r linker option.

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
I am not the subject of this sentence.

--lLR1BQqf7txDtYcF
Content-Type: text/plain; charset=windows-1251
Content-Disposition: attachment; filename="security-mhash.patch"
Content-Transfer-Encoding: quoted-printable

Index: ports/security/mhash/Makefile
=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/security/mhash/Makefile,v
retrieving revision 1.17
diff -u -r1.17 Makefile
--- ports/security/mhash/Makefile	21 May 2002 17:53:20 -0000	1.17
+++ ports/security/mhash/Makefile	4 Dec 2002 10:50:20 -0000
@@ -15,8 +15,13 @@
=20
 INSTALLS_SHLIB=3D	yes
 USE_LIBTOOL=3D	yes
+
+.include <bsd.port.pre.mk>
+
+.if ${ARCH} !=3D sparc64
 CONFIGURE_ARGS+=3D	--with-LDFLAGS=3D"${PTHREAD_LIBS}"
+.endif
=20
 MAN3=3D		mhash.3
=20
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>

--lLR1BQqf7txDtYcF--

--D3I0HgOdJ5+6n+7I
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (FreeBSD)

iD8DBQE97eE07Ri2jRYZRVMRAjdbAKCDqzkIY1jv0UtRYJfpsDT/aZb0MQCfdLsj
EGfAxWnkq9i74MvG2y9nmHQ=
=JFtI
-----END PGP SIGNATURE-----

--D3I0HgOdJ5+6n+7I--

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?20021204110420.GO365>