It didn't work for me with BSD grep. Probably I can patch crosstool-ng to support BSD grep (and probably other GNU tools).