Compile this code two ways: int main() {} 1. libtool --mode=compile gcc -c main.c -o main.o 2. libtool --mode=compile /usr/bin/gcc -c main.c -o main.o The second way dies with the error libtool: compile: unable to infer tagged configuration I can't imagine a reason for libtool to be so stupid. Please enlighten me if there is really a reason for this. I didn't see this with previous versions of libtool, but libtool 1.5 versions other than 1.5.2-r3 have been removed from portage, so I can only verify that 1.4.3-r3 does not have this problem. Gentoo Base System version 1.4.3.13 Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.2, glibc-2.3.3_pre20040207-r0, 2.4.20-gentoo-r11) ================================================================= System uname: 2.4.20-gentoo-r11 i686 ccache version 2.3 [disabled] Autoconf: sys-devel/autoconf-2.59-r3 Automake: sys-devel/automake-1.8.2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=pentium3 -O3 -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-march=pentium3 -O3 -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs sandbox userpriv" GENTOO_MIRRORS="http://www.gtlib.cc.gatech.edu/pub/gentoo http://open-systems.ufl.edu/mirrors/gentoo ftp://ftp.ussg.iu.edu/pub/linux/gentoo ftp://mirrors.tds.net/gentoo http://mirror.clarkson.edu/pub/distributions/gentoo/ http://mirror.tucdemonic.org/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.us.gentoo.org/gentoo-portage" USE="X acl alsa apm atlas bonobo cdr crypt cups fam foomaticdb gdbm gif gnome gpm gtk gtk2 imap java jpeg maildir mmx mozilla mpeg ncurses oggvorbis opengl oss pam pcmcia perl png pnp python quicktime readline slang spell sse ssl tcltk tcpd tetex truetype trusted video_cards_mach64 x86 xml2 xmms zlib"
thats because other versions of 1.5 are very broken
Its on purpose to automatically get tags set: -- # Infer tagged configuration to use if any are available and # if one wasn't chosen via the "--tag" command line option. # Only attempt this if the compiler in the base compile # command doesn't match the default compiler. -- Default CC is "gcc", so I guess you could edit the makefile if you reallly want to use /usr/bin/gcc ...
Err, edit /usr/bin/libtool (or whatever libtool you uses) ... Just do not set the PATH is the correct way though it seems.