Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Jul 2005 14:19:56 -0400
From:      Kris Kennaway <kris@obsecurity.org>
To:        Vasil Dimov <vd@datamax.bg>
Cc:        ports@freebsd.org, Martin Cracauer <cracauer@cons.org>, Kris Kennaway <kris@obsecurity.org>
Subject:   Re: Problem with mingw port, obeys $(CPUTYPE) but shouldn't
Message-ID:  <20050701181956.GA99579@xor.obsecurity.org>
In-Reply-To: <20050701052243.GA9198@sinanica.bg.datamax>
References:  <20050630174246.A73270@cons.org> <20050630214943.GA45010@xor.obsecurity.org> <20050630181641.A74954@cons.org> <20050630233745.GA78956@xor.obsecurity.org> <20050701052243.GA9198@sinanica.bg.datamax>

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

--7JfCtLOvnd9MIVvH
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, Jul 01, 2005 at 08:22:43AM +0300, Vasil Dimov wrote:
> On Thu, Jun 30, 2005 at 07:37:45PM -0400, Kris Kennaway wrote:
> > On Thu, Jun 30, 2005 at 06:16:41PM -0400, Martin Cracauer wrote:
> > > Kris Kennaway wrote on Thu, Jun 30, 2005 at 05:49:43PM -0400:=20
> > > > On Thu, Jun 30, 2005 at 05:42:46PM -0400, Martin Cracauer wrote:
> > > > > The mingw port seems to inherit CPU-specific settings from
> > > > > /etc/make.conf which it shouldn't.  It uses an older version of g=
cc
> > > > > which is bound not to understand the fancy tuning from the CPU ty=
pe.
> > > >=20
> > > > There's a bsd.port.mk option (WITHOUT_CPU_CFLAGS or something) that
> > > > sanitizes the CFLAGS to prevent old compiler ports from breaking in
> > > > this way.
> > >=20
> > > Thank you Kris, that is doing the right thing.  The appended diff
> > > fixes the port.
> > >=20
> > > Anybody thinks of a reason not to commit that?
> >=20
> > Seems good to me :-) It would be nice if someone could sweep the other
> > miscellaneous compiler ports for this too.
> >=20
> Any ideas how this could be achieved?
> Remove standard compiler and find ports that do not define NO_BUILD and
> do not fail building... :)

I don't know if you can do this automatically (those ports still need
to bootstrap themselves).  Maybe I should try doing a package build
run with CPUTYPE=3Dpentium3 since that was unsupported on old gcc
versions.

Kris

--7JfCtLOvnd9MIVvH
Content-Type: application/pgp-signature
Content-Disposition: inline

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

iD8DBQFCxYlLWry0BWjoQKURAtCQAKCoseY+Iz+up2GXI9nDiBFjHwVnzQCeJOGZ
QhMFp4x44i/+fnN3//9870s=
=kF10
-----END PGP SIGNATURE-----

--7JfCtLOvnd9MIVvH--



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