Subject: Re: bug#5655: incorrect paths for crt1.o, crtn.o, etc.

From: Glenn Morris <[email-masked]>
Date: Tue, 27 Apr 2010 15:32:16 -0400

Sven Joachim wrote:

> Does not seem to work at all.

Sorry, the configure.in part was missing a line (machfile):

*** configure.in	2010-04-27 08:09:01 +0000
--- configure.in	2010-04-27 19:29:48 +0000
***************
*** 761,766 ****
--- 761,779 ----
  if test "x$RANLIB" = x; then
    AC_PROG_RANLIB
  fi
+ 
+ ## Although we're running on an amd64 kernel, we're actually compiling for
+ ## the x86 architecture.  The user should probably have provided an
+ ## explicit --build to `configure', but if everything else than the kernel
+ ## is running in i386 mode, we can help them out.
+ if test "$machine" = "amdx86-64"; then
+   AC_CHECK_DECL([i386])
+   if test "$ac_cv_have_decl_i386" = "yes"; then
+     machine=intel386
+     machfile="m/${machine}.h"
+   fi
+ fi
+ 
  AC_PATH_PROG(INSTALL_INFO, install-info)
  AC_PATH_PROG(INSTALL_INFO, install-info,, /usr/sbin)
  AC_PATH_PROG(INSTALL_INFO, install-info,:, /sbin)