On Thu, 26 Nov 2015, Andreas Tobler wrote:
the attached patch fixes the build issue from this ticket if bootstrap is disabled.Tested on x86_64-*-linux* and on x86_64-*-freebsd* with gcc and clang. Ok for trunk? And 5.3? Thanks, Andreas 2015-11-26 Andreas Tobler <andre...@gcc.gnu.org> PR libffi/65726 * Makefile.def (lang_env_dependencies): Make libffi depend on cxx. * Makefile.in: Regenerate.
This one fixes the issue in all my tests (and I am the original reporter). Since we do not have a libffi maintainer and it is a regression and really straightforward, I'd go ahead and apply it, Andreas. Gerald
Index: Makefile.def =================================================================== --- Makefile.def (revision 230942) +++ Makefile.def (working copy) @@ -534,6 +534,7 @@ // on libgcc and newlib/libgloss. lang_env_dependencies = { module=libjava; cxx=true; }; lang_env_dependencies = { module=libitm; cxx=true; }; +lang_env_dependencies = { module=libffi; cxx=true; }; lang_env_dependencies = { module=libcilkrts; cxx=true; }; lang_env_dependencies = { module=liboffloadmic; cxx=true; }; lang_env_dependencies = { module=newlib; no_c=true; }; Index: Makefile.in =================================================================== --- Makefile.in (revision 230942) +++ Makefile.in (working copy) @@ -51034,6 +51034,7 @@ configure-target-libffi: maybe-all-target-newlib maybe-all-target-libgloss +configure-target-libffi: maybe-all-target-libstdc++-v3 configure-target-libjava: maybe-all-target-newlib maybe-all-target-libgloss configure-target-libjava: maybe-all-target-libstdc++-v3