[committed] toplevel dependencies for libmudflap

James E Wilson wilson@specifix.com
Wed Oct 5 01:30:00 GMT 2005


I'm getting build failures when I try to use make -j2 to build a
mips-elf target configured with --enable-libmudflap.  The problem is
that libmudflap has no dependencies on newlib and libgloss.  However, it
has configure checks that require the existence of a C library.  So we
must build newlib and libgloss before trying to configure libmudflap.

We already have a solution for this which is lang_env_dependencies.  It
looks like pretty much every top level library is mentioned in
lang_env_dependencies, except libmudflap.  I added it.

This change results in a single line added to the Makefile.in file.
configure-target-libmudflap: maybe-all-target-newlib
maybe-all-target-libgloss
This is all we need to fix the problem.

I have tested this with a mips-elf cross toolchain build and an
x86_64-linux build.

I have added the patch to both the gcc and src repositories.
-- 
Jim Wilson, GNU Tools Support, http://www.specifix.com
-------------- next part --------------
2005-10-04  James E Wilson  <wilson@specifix.com>

	* Makefile.def (lang_env_dependencies): Add libmudflap.
	* Makefile.in: Regenerate.

Index: Makefile.def
===================================================================
RCS file: /cvs/gcc/gcc/Makefile.def,v
retrieving revision 1.58
diff -p -p -r1.58 Makefile.def
*** Makefile.def	28 Sep 2005 23:49:45 -0000	1.58
--- Makefile.def	4 Oct 2005 22:43:46 -0000
*************** lang_env_dependencies = { module=libada;
*** 418,423 ****
--- 418,424 ----
  lang_env_dependencies = { module=libgfortran; };
  lang_env_dependencies = { module=libffi; };
  lang_env_dependencies = { module=libjava; cxx=true; };
+ lang_env_dependencies = { module=libmudflap; };
  lang_env_dependencies = { module=libobjc; };
  lang_env_dependencies = { module=libssp; };
  lang_env_dependencies = { module=libstdc++-v3; };


More information about the Gcc-patches mailing list