--- Makefile.orig Sat Feb 3 00:48:26 2001 +++ Makefile Sat Feb 3 00:45:00 2001 @@ -253,11 +253,23 @@ -o vmlinux $(NM) vmlinux | grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | sort > System.map -symlinks: +symlinks: gccversioncheck rm -f include/asm ( cd include ; ln -sf asm-$(ARCH) asm) @if [ ! -d include/linux/modules ]; then \ mkdir include/linux/modules; \ + fi + +gccversioncheck: + @gccversion=`${HOSTCC} --version`;\ + echo Using gcc version: $$gccversion;\ + if [ "x$${gccversion}" != "x2.95.2" ]; then \ + echo "********************************************************************"; \ + echo "*** This compiler version is not approved for compiling the kernel"; \ + echo "*** version: " $$HOSTCC $$gccversion ; \ + echo "*** Please consider this when reporting bugs" ;\ + echo "********************************************************************"; \ + sleep 1; \ fi oldconfig: symlinks