I have installed a pre-built kernel and toolchain on my host system for cross-development. When I download existing source packages and try to cross-build for my target, the native toolchain is invoked.
My cross-toolchain is working, as I have rebuilt the target kernel thru its own makefile, and compiled individual files by directly invoking the cross version of gcc. What does not work is when I try to use a configure script or makefile that did not come with the target distro. It always finds the native tools regardless of where the source files are placed.
For instance, I downloaded the source package setserial which has a configure script. Running ./configure always creates a makefile for the native tools. Is it normal to have to edit the configure script or makefile for cross-compiling?