Subject: build.sh tries cross build with host CFLAGS/COPTS?
To: None <current-users@netbsd.org>
From: Hauke Fath <hf@tangro.de>
List: current-users
Date: 01/10/2003 17:12:17
>From an attempt to build current NetBSD/mac68k on a sparc:

includes ===> rescue
(cd /export/bsd/netbsd-src/current/src/lib/csu &&
/build/mac68k/tools/bin/nbmake dependall)
dependall ===> m68k_elf
/build/mac68k/tools/bin/m68k--netbsdelf-gcc -O2 -mcpu=supersparc
-mtune=superspa rc -mcpu=supersparc -mtune=supersparc -O2 -pipe -Wall
-Wstrict-prototypes -Wmiss ing-prototypes -Wpointer-arith
-Wno-sign-compare -Wno-uninitialized -Wreturn-typ e -Wswitch -Wshadow 
-Werror  -I- -I/export/bsd/netbsd-src/current/src/lib/csu/m 68k_elf
-DLIBC_SCCS -DPIC -DDYNAMIC -DELFSIZE=32 -I/export/bsd/netbsd-src/curren
t/src/libexec/ld.elf_so
-I/export/bsd/netbsd-src/current/src/lib/csu/m68k_elf/../common_elf
-I/export/bsd/netbsd-src/current/src/lib/libc/dlfcn -DDWARF2_EH -DJC R
-DDSO_HANDLE -nostdinc -isystem /build/mac68k/destdir/usr/include  -c
-DCRT0 / export/bsd/netbsd-src/current/src/lib/csu/m68k_elf/crt0.c -o
crt0.o cc1: Invalid option `cpu=supersparc'
cc1: Invalid option `tune=supersparc'
cc1: Invalid option `cpu=supersparc'
cc1: Invalid option `tune=supersparc'
*** Error code 1

Stop.
nbmake: stopped in /export/bsd/netbsd-src/current/src/lib/csu/m68k_elf
*** Error code 1

-- how do I teach a cross-build not to use CFLAGS and COPTS from
/etc/mk.conf?

	hauke

-- 
Hauke Fath
tangro software components gmbh		Czernyring 22/10
					D-69115 Heidelberg
					+49-6221-1333-60 (fax -621)