[...] libtool: compile: cc -DHAVE_CONFIG_H -I. -I./../fftw -I. -O2 -march=pentium4 -pipe -fomit-frame-pointer -fopenmp -MT executor.lo -MD -MP -MF .deps/executor.Tpo -c executor.c -fPIC -DPIC -o .libs/executor.o mv -f .deps/timer.Tpo .deps/timer.Plo /bin/sh ../libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -I. -I./../fftw -I. -O2 -march=pentium4 -pipe -fomit-frame-pointer -fopenmp -MT fftwnd.lo -MD -MP -MF .deps/fftwnd.Tpo -c -o fftwnd.lo fftwnd.c libtool: compile: cc -DHAVE_CONFIG_H -I. -I./../fftw -I. -O2 -march=pentium4 -pipe -fomit-frame-pointer -fopenmp -MT generic.lo -MD -MP -MF .deps/generic.Tpo -c generic.c -fPIC -DPIC -o .libs/generic.o libtool: compile: cc -DHAVE_CONFIG_H -I. -I./../fftw -I. -O2 -march=pentium4 -pipe -fomit-frame-pointer -fopenmp -MT fftwnd.lo -MD -MP -MF .deps/fftwnd.Tpo -c fftwnd.c -fPIC -DPIC -o .libs/fftwnd.o libtool: compile: cc -DHAVE_CONFIG_H -I. -I./../fftw -I. -O2 -march=pentium4 -pipe -fomit-frame-pointer -fopenmp -MT fni_64.lo -MD -MP -MF .deps/fni_64.Tpo -c fni_64.c -o fni_64.o >/dev/null 2>&1 [...] Even after the following change, which made configure look for the right CC, but which didn't configure libtool properly, as it seems: Index: fftw-2.1.5-r6.ebuild =================================================================== RCS file: /var/cvsroot/gentoo-x86/sci-libs/fftw/fftw-2.1.5-r6.ebuild,v retrieving revision 1.4 diff -u -B -r1.4 fftw-2.1.5-r6.ebuild --- fftw-2.1.5-r6.ebuild 1 Jul 2010 06:58:03 -0000 1.4 +++ fftw-2.1.5-r6.ebuild 3 Nov 2010 04:20:15 -0000 @@ -90,10 +90,15 @@ --without-openmp" fi cd "${S}-single" - econf ${myconf} --enable-float || die "econf for float failed" + econf ${myconf} \ + --enable-float \ + --with-gcc=$(tc-getCC) \ + || die "econf for float failed" cd "${S}-double" - econf ${myconf} || die "econf for double failed" + econf ${myconf} \ + --with-gcc=$(tc-getCC) \ + || die "econf for double failed" } src_compile() {
# ChangeLog for sci-libs/fftw # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 # $Header: /var/cvsroot/gentoo-x86/sci-libs/fftw/ChangeLog,v 1.105 2010/11/03 07:02:32 jer Exp $ *fftw-2.1.5-r7 (03 Nov 2010) 03 Nov 2010; Jeroen Roovers <jer@gentoo.org> +fftw-2.1.5-r7.ebuild, +files/fftw-2.1.5-cc.patch: Respect CC (bug #343945). The patch might be accepted upstream.