With the current trunk, buildroot:
gmake[5]: Nothing to be done for `pre-build'.
gmake[5]: Leaving directory `/var/tmp/freewrt/trunk/freewrt/package/uclibc++'
cd /var/tmp/freewrt/trunk/freewrt/build_mipsel/w-uClibc++-0.2.1-1/uClibc++-0.2.1
&& env CC='/var/tmp/freewrt/trunk/freewrt/staging_dir_mipsel/bin/mipsel-linux-
uclibc-gcc' CXX='/var/tmp/freewrt/trunk/freewrt/staging_dir_mipsel/bin/mipsel-li
nux-uclibc-g++' CFLAGS='-Os -fno-ident -fwrapv -fhonour-copts' CXXFLAGS='-Os -fn
o-ident -fwrapv -fhonour-copts' CPPFLAGS='-isystem /var/tmp/freewrt/trunk/freewr
t/staging_dir_mipsel/include -isystem /var/tmp/freewrt/trunk/freewrt/staging_dir
_mipsel/usr/include' LDFLAGS='-L/var/tmp/freewrt/trunk/freewrt/staging_dir_mipse
l/lib -L/var/tmp/freewrt/trunk/freewrt/staging_dir_mipsel/usr/lib' /var/tmp/free
wrt/trunk/freewrt/lbin/gmake -f Makefile \
TOPDIR="/var/tmp/freewrt/trunk/freewrt/build_mipsel/w-uClibc++-0.2.1-1/uClib
c++-0.2.1/" PATH=/var/tmp/freewrt/trunk/freewrt/lbin:/var/tmp/freewrt/trunk/free
wrt/staging_dir_mipsel/usr/bin:/var/tmp/freewrt/trunk/freewrt/staging_dir_mipsel
/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/local/sbin:/usr/local/bin
AR=/var/tmp/freewrt/trunk/freewrt/staging_dir_mipsel/bin/mipsel-linux-uclibc-ar
AS=/var/tmp/freewrt/trunk/freewrt/staging_dir_mipsel/bin/mipsel-linux-uclibc-as
LD=/var/tmp/freewrt/trunk/freewrt/staging_dir_mipsel/bin/mipsel-linux-uclibc-ld
NM=/var/tmp/freewrt/trunk/freewrt/staging_dir_mipsel/bin/mipsel-linux-uclibc-nm
CC="/var/tmp/freewrt/trunk/freewrt/staging_dir_mipsel/bin/mipsel-linux-uclibc-g
cc" GCC="/var/tmp/freewrt/trunk/freewrt/staging_dir_mipsel/bin/mipsel-linux-ucli
bc-gcc" CXX="/var/tmp/freewrt/trunk/freewrt/staging_dir_mipsel/bin/mipsel-linux-
uclibc-g++" RANLIB=/var/tmp/freewrt/trunk/freewrt/staging_dir_mipsel/bin/mipsel-
linux-uclibc-ranlib ARCH_CFLAGS="-Os -fno-ident -fwrapv -fhonour-copts" CROSS="/
var/tmp/freewrt/trunk/freewrt/staging_dir_mipsel/bin/mipsel-linux-uclibc-" all
gmake[5]: Entering directory `/var/tmp/freewrt/trunk/freewrt/build_mipsel/w-uCli
bc++-0.2.1-1/uClibc++-0.2.1'
gmake[6]: Entering directory `/var/tmp/freewrt/trunk/freewrt/build_mipsel/w-uCli
bc++-0.2.1-1/uClibc++-0.2.1/extra/config'
gcc -O2 -Wall -I. -c conf.c -o conf.o
/var/tmp/freewrt/trunk/freewrt/staging_dir_mipsel/usr/bin/as: /var/tmp/freewrt/t
runk/freewrt/staging_dir_mipsel/usr/bin/as: cannot execute binary file
gmake[6]: *** [conf.o] Error 1
Problem: wrong gcc is used, see:
env CC='/var/tmp/freewrt/trunk/freewrt/staging_dir_mipsel/bin/m
ipsel-linux-uclibc-gcc' CXX='/var/tmp/freewrt/trunk/freewrt/staging_dir_mipsel/bin/mipsel-linux-uclibc-g++' CFLAGS='-Os -fno-ident -fwrapv -fhonour-copts' CXXFLAGS='-Os -fno-ident -fwrapv -fhonour-copts' CPPFLAGS='-isystem /var/tmp/freewrt/trunk/freewrt/staging_dir_mipsel/include -isystem /var/tmp/freewrt/trunk/freewrt/staging_dir_mipsel/usr/include' LDFLAGS='-L/var/tmp/freewrt/trunk/freewrt/staging_dir_mipsel/lib -L/var/tmp/freewrt/trunk/freewrt/staging_dir_mipsel/usr/lib' which gcc
/usr/bin/gcc
CC/GCC variable seems to be ignored
Dirk