on Ubuntu 10.04 x86_64 LTS. I of course had to install gcc-4.7 first, but that was easy to find on the Internet.
My problem it seems is some lines like the following (for libgcc_s.so and libgcc.a too):
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.7/libstdc++.so when searching for -lstdc++