This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Always create target tools in the gcc directory, take 6 (Re: [PATCH]gcc configure's determination of ld and as)



	* configure.ac (gcc_cv_as, gcc_cv_ld): Examine MD_EXEC_PREFIX in
	tm files to determine compiler search path.  Kill code duplication.

I implemented this on top of the "always create gcc/as and friends" neverending stor^W^W patch.


Here is the new version, tested while working on gcc in various kinds of trees.

Paolo
2005-05-18  Paolo Bonzini  <bonzini@gnu.org>
	    Daniel Jacobowitz  <drow@codesourcery.com>

	* configure.ac (gcc_version): Set near the beginning.
	(as, ld, nm): Do not link in-tree tools.  Set gcc_cv_* if tools are
	found in the tree.  Use gcc_AC_PROG to find the tools in the system.
	(objdump): Do not look for it.
	* Makefile.in (NM_FOR_TARGET): Point to ./nm
	(ORIGINAL_AS_FOR_TARGET, ORIGINAL_LD_FOR_TARGET,
	ORIGINAL_NM_FOR_TARGET): Substitute from autoconf.
	(as, ld, nm): New rules.
	(libgcc.mk): Depend on them.
	* aclocal.m4 (gcc_AC_TOOL_DIRS, gcc_AC_CHECK_TOOL,
	gcc_AC_BUILD_EXEEXT): New.
	(gcc_AC_CHECK_PROG_VER): Use gcc_AC_BUILD_EXEEXT.
	* configure: Regenerate.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]