Port-sparc archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

How to specify COPTS when cross-building for SPARCclassic?



On Tue, 6 Jan 2009, Michael wrote:

On Jan 6, 2009, at 7:18 PM, Hisashi T Fujinaka wrote:

On Mon, 5 Jan 2009, Michael wrote:
... and while there don't forget to put -mcpu=v8 -mtune=v8 into
CFLAGS, otherwise you'd get v7 binaries which would slow things
down even more.

Is there an easy way to do this just for the cross build? I'm always
confused about all this.

I meant COPTS. Putting it into CFLAGS would affect building the tools
which would probably now be what you want.
For what it's worth I have wrapper scripts for cross-builds, they
don't do much except emptying CFLAGS, LDFLAGS, CXXFLAGS and so on and
putting options appropriate for the target into COPTS. After that it's
just build.sh -m sparc distribution.

I'm going to be a total noob and ask how exactly to do this. I put it in
an environment variable (using man (1) env) but I'm not sure what's what
it takes. I'm crosscompiling and I'm not good enough at sh scripting to
figure out how to conditionally put it into mk.conf.

Thanks.

--
Hisashi T Fujinaka - htodd%twofifty.com@localhost
BSEE(6/86) + BSChem(3/95) + BAEnglish(8/95) + MSCS(8/03) + $2.50 = latte


Home | Main Index | Thread Index | Old Index