The make process is not autotools based and uses a makefile directly. The makefile uses the gcc command as CC. To make cross compiling work, I had to modify the Makefile this way: --- Makefile.old 2007-07-08 06:59:03.000000000 +0200 +++ Makefile 2007-07-08 06:59:46.000000000 +0200 @@ -2,7 +2,7 @@ # Makefile for dosfstools (mkdosfs and dosfsck) # -CC = gcc +CC := $(shell portageq envvar CHOST)-gcc CPP = $(CC) -E OPTFLAGS = -O2 -fomit-frame-pointer -D_FILE_OFFSET_BITS=64 WARNFLAGS = -Wall Reproducible: Always Steps to Reproduce: Use the "Gentoo Cross Development Guide" (http://www.gentoo.org/proj/en/base/embedded/cross-development.xml) When the cross-compile host is ready, do a: xmerge dosfstools During the compilation, you will see the host compiler used instead of the cross-compiler. Actual Results: The dosfstools execs do not work on the target host. Expected Results: The cross compiler should be used instead of the native gcc
*** This bug has been marked as a duplicate of bug 157785 ***