Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 Jan 2007 13:42:40 -0500
From:      Kris Kennaway <kris@obsecurity.org>
To:        Alexander Leidinger <Alexander@Leidinger.net>
Cc:        Jean-Yves Lefort <jylefort@FreeBSD.org>, gnome@FreeBSD.org, ports@FreeBSD.org
Subject:   Re: Build arch for configure based upon CPUTYPE, prototype (was: Re: cvs commit: ports/devel/glib20 Makefile)
Message-ID:  <20070113184240.GA65217@xor.obsecurity.org>
In-Reply-To: <20070113194022.1511ac11@Magellan.Leidinger.net>
References:  <200701111721.l0BHLaZA019340@repoman.freebsd.org> <20070112111726.k4y1ue5w6c0s4owo@webmail.leidinger.net> <20070112121306.48f99e8b.jylefort@FreeBSD.org> <20070113194022.1511ac11@Magellan.Leidinger.net>

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

--lrZ03NoBR/3+SXJZ
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sat, Jan 13, 2007 at 07:40:22PM +0100, Alexander Leidinger wrote:
> Quoting Jean-Yves Lefort <jylefort@FreeBSD.org> (Fri, 12 Jan 2007 12:13:0=
6 +0100):
>=20
> > On Fri, 12 Jan 2007 11:17:26 +0100
> > Alexander Leidinger <Alexander@Leidinger.net> wrote:
> >=20
> > > Quoting Jean-Yves Lefort <jylefort@FreeBSD.org> (from Thu, 11 Jan 2007
> > > 17:21:36 +0000 (UTC)):
> > >
> > > > jylefort    2007-01-11 17:21:36 UTC
> > > >
> > > >   FreeBSD ports repository
> > > >
> > > >   Modified files:
> > > >     devel/glib20         Makefile
> > > >   Log:
> > > >   On i386 (>=3D 486) and amd64, fix the arch passed to configure so=
 that
> > > >   glib will implement atomic operations with assembler instructions
> > > >   rather than mutexes (improves performance).
> > >
> > > What about setting GNOME_ARCH based upon CPUTYPE instead of hardcoding
> > > it to i486?
> >=20
> > The problem is not specific to GNOME. I prefer the solution below.
> >=20
> > > Or much better: set --build in bsd.port.mk globally based upon CPUTYPE
> > > (to iX86 on IA32, I'm not sure if it is wise to change the amd64 one
> > > globally).
> >=20
> > Yes. And do pass x86_64 for amd64, that's what a majority of configure
> > scripts expect since they have linux in mind.
>=20
> Hi, the proof of concept is attached. Configure shows i686-portbld...
> when building glib20 on my machine (CPUTYPE set to athlon-xp).
>=20
> For the final patch I want to sort the list of CPUTYPEs. I'm sending
> this version to get some testresults (failing ports?) and
> reviews/comments.

This is likely to break large numbers of ports, so we can only proceed
if you're willing to deal with that.

Kris

--lrZ03NoBR/3+SXJZ
Content-Type: application/pgp-signature
Content-Disposition: inline

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

iD8DBQFFqSggWry0BWjoQKURAiiKAKDcLpfRdq4Vr5t2y35US7fEYXGKNQCg3/Ua
ORfv33fsVh0XAyC/bQ5+aBo=
=cGK1
-----END PGP SIGNATURE-----

--lrZ03NoBR/3+SXJZ--



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