Problem with mingw port, obeys $(CPUTYPE) but shouldn't
Kris Kennaway
kris at obsecurity.org
Fri Jul 1 18:19:57 GMT 2005
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:
> > > > 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 gcc
> > > > > which is bound not to understand the fancy tuning from the CPU type.
> > > >
> > > > 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.
> > >
> > > Thank you Kris, that is doing the right thing. The appended diff
> > > fixes the port.
> > >
> > > Anybody thinks of a reason not to commit that?
> >
> > Seems good to me :-) It would be nice if someone could sweep the other
> > miscellaneous compiler ports for this too.
> >
> 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=pentium3 since that was unsupported on old gcc
versions.
Kris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20050701/fafeb446/attachment.bin
More information about the freebsd-ports
mailing list