http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54304
--- Comment #10 from Tobias Schlüter <tobi at gcc dot gnu.org> 2012-08-17 20:56:40 UTC --- You don't need the -L flags for the in-tree libraries at all as you could just put, say, "path_to_mpfr/libmpfr.a" on the command line. I understand that this might need some major Makefile surgery. Anyway, a build without --with-libiconv-prefix=/opt/local succeeded, I have updated my system in the meantime, so I can't investigate this further. (The iconv issue was of the type described e.g. here <https://bugs.php.net/bug.php?id=52611>). Anyway, I think this can be closed as INVALID unless you find the suggestion to do away with -L for in-tree stuff worthwhile.