> is something wrong with my build environment or -B$$r/$(TARGET_SUBDIR)/newlib/ > should be changed to -L$$r/$(TARGET_SUBDIR)/newlib/ ? Nothing is wrong with your build environment, it probably should be -L, but please post patches and/or bug reports to gcc-patches@gcc.gnu.org, as those files originate there.