http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47762
--- Comment #12 from Iain Sandoe <iains at gcc dot gnu.org> 2012-04-18 12:08:55 UTC --- (In reply to comment #11) > Of course I meant it doesn't *link*. I guess I have never noticed this error > before: > > /usr/bin/ld: cannot find -lm > /usr/bin/ld: cannot find -lpthread > /usr/bin/ld: cannot find -lc darwin does not support -static for user space code. -static-libstdc++ should work.