Subject: Re: Cross-compile on i386
To: None <port-hpcmips@netbsd.org>
From: Miles Nordin <carton@Ivy.NET>
List: port-hpcmips
Date: 05/16/2003 10:29:10
>>>>> "ap" == Alex Poylisher <sher@komkon.org> writes:

    ap> I'd like to build a release for z50 and give -mcpu=r4000
    ap> -mips2 etc.

This doesn't work.  It almost works, but there is some floating point
problem that causes a lot of programs to crash and causes
sprintf("%f",...) to put out garbage.

The way I did it was to hack gcc to assume similar options to what the
kernel uses as the default.  I figured it is not very neighborly to
install a userland build with some obscure incantation, then deliver a
compiler so that when users compile their own programs they aren't
built with the ``correct'' options for this machine, so really gcc
should by default build whatever is a ``default'' binary on this
machine, not one optimized for DECstations.  I will try to post my
diff if you really want it.

-- 
Le fascisme est la dictature ouverte de la bourgeoisie.
		-- Georg Dimitrov