Subject: Re: Two problems on sparc64 (heh!)
To: Martin Husemann <martin@duskware.de>
From: Todd Vierling <tv@wasabisystems.com>
List: tech-toolchain
Date: 01/19/2002 11:52:27
On Sat, 19 Jan 2002, Martin Husemann wrote:

: gcc  -g -O2 -DMAKE_BOOTSTRAP -I/usr/src/tools/make/../../usr.bin/make -c /usr/src/tools/make/../../usr.bin/make/lst.lib/lstSucc.c
: gcc  -g -O2 -o nbmake *.o
: Segmentation fault - core dumped

This is probably because of the -O2, which isn't set by default on sparc64
in <bsd.own.mk> because of similar codegen problems.

I've changed build.sh (rev. 1.40) to honor HOST_CC, HOST_CFLAGS,
HOST_CPPFLAGS, and HOST_LDFLAGS being set in the environment, and changed
the defaults to use HOST_CC=cc and HOST_CFLAGS=-O (not -O2).  You can now
set "-O -pipe" in HOST_CFLAGS without modifying build.sh.

-- 
-- Todd Vierling <tv@wasabisystems.com>  *  Wasabi & NetBSD:  Run with it.
-- CDs, Integration, Embedding, Support -- http://www.wasabisystems.com/