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

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Dec 04, 2002 at 01:03:58PM +0200, Peter Pentchev wrote:
> 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 Ferreir=
a 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. I=
t 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.
>=20
> 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.

	If you're certain it works without thread support, by all
means commit :)
	The patch looks clean.

> 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>

--=20
Mario S F Ferreira - DF - Brazil - "I guess this is a signature."
Computer Science Undergraduate | FreeBSD Committer | CS Developer
flames to beloved devnull@someotherworldbeloworabove.org
feature, n: a documented bug | bug, n: an undocumented feature

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?20021204111948.12373.qmail>