Cross compilation is much easier these days than it was in 1995 when we used gcc 2.7.2. This memo describes how I configured binutils and gcc to do a cross-compilation from i386 to sparc. -- zaitcev 2000/12/02 ../binutils-2.9.1.0.15/configure --target=sparc-unknown-linux-gnu \ --enable-shared --prefix=/q/opt/cross ../gcc-2.95.2/configure --target=sparc-unknown-linux-gnu --with-gnu-as \ --with-gnu-ld --disable-languages --prefix=/q/opt/cross Index: Makefile =================================================================== RCS file: /vger/linux/Makefile,v retrieving revision 1.349 diff -u -r1.349 Makefile --- Makefile 2000/11/28 09:40:31 1.349 +++ Makefile 2000/12/04 03:56:33 @@ -5,7 +5,8 @@ KERNELRELEASE=$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION) -ARCH := $(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ -e s/arm.*/arm/ -e s/sa110/arm/) +# ARCH := $(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ -e s/arm.*/arm/ -e s/sa110/arm/) +ARCH := sparc CONFIG_SHELL := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \ else if [ -x /bin/bash ]; then echo /bin/bash; \ @@ -18,7 +19,7 @@ HOSTCC = gcc HOSTCFLAGS = -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -CROSS_COMPILE = +CROSS_COMPILE = /q/opt/cross/sparc-unknown-linux-gnu/bin/ # # Include the make variables (CC, etc...)