------- Comment #2 from pinskia at gcc dot gnu dot org 2008-03-10 22:39 ------- It is better to use -B $prefix/lib while building. And seriously I think you are doing something wrong when you edit the files as you did.
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35532