I just tried to bootstrap an i586 gentoo on an AMD64-gentoo box but although I imo set the correct parameter in (the chrooted) /etc/make.conf "-mcpu=i586 -march=pentium" libtool compilation tries to build itself for a "x86_64-pc-linux"... Anyone knows how to circumvent this problem?
ahzf
make[1]: Entering directory `/var/tmp/portage/libtool-1.4.3-r4/work/libtool-1.3.5'
rm -f ltmain.shT
CONFIG_FILES=libtoolize CONFIG_HEADERS= ./config.status
date=`/bin/sh ./mkstamp < ./ChangeLog` && \
sed -e 's/@''PACKAGE@/libtool/' -e 's/@''VERSION@/1.3.5/' \
-e "s%@""TIMESTAMP@%$date%" ./ltmain.in > ltmain.shT
creating libtoolize
mv -f ltmain.shT ltmain.sh || \
(rm -f ltmain.sh && cp ltmain.shT ltmain.sh && rm -f ltmain.shT)
CC="gcc" CFLAGS="-O2 -mcpu=i586 -march=pentium -fomit-frame-pointer -pipe" CPPFLAGS="" \
LD="/usr/i586-pc-linux-gnu/bin/ld" LDFLAGS="" LIBS="" \
LN_S="ln -s" NM="/usr/bin/nm -B" RANLIB="ranlib" \
DLLTOOL="" OBJDUMP="" AS="" \
/bin/sh ./ltconfig --cache-file=./config.cache --with-gcc --with-gnu-ld --enable-dlopen --srcdir=. \
--output=libtool ./ltmain.sh
chmod +x libtoolize
loading cache ./config.cache within ltconfig
checking host system type... Invalid configuration `x86_64-pc-linux': machine `x86_64-pc' not recognized
make[1]: *** [libtool] Error 1
make[1]: Leaving directory `/var/tmp/portage/libtool-1.4.3-r4/work/libtool-1.3.5'
make: *** [all-recursive] Error 1
!!! ERROR: sys-devel/libtool-1.4.3-r4 failed.
!!! Function src_compile, Line 140, Exitcode 2
!!! (no error message)
