http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52223
--- Comment #3 from joseph at codesourcery dot com <joseph at codesourcery dot com> 2012-02-13 16:50:17 UTC --- This ought to work. Does applying the fix I discuss in <http://gcc.gnu.org/ml/gcc-patches/2011-09/msg01187.html> - setting FLAGS_TO_PASS = $(AM_MAKEFLAGS) in Makefile.am - for libffi help here?