This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Always create target tools in the gcc directory, take 6 (Re: [PATCH]gcc configure's determination of ld and as)
- From: Paolo Bonzini <paolo dot bonzini at lu dot unisi dot ch>
- To: Alan Modra <amodra at bigpond dot net dot au>, Daniel Jacobowitz <drow at false dot org>,GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 03 Jun 2005 11:26:24 +0200
- Subject: Always create target tools in the gcc directory, take 6 (Re: [PATCH]gcc configure's determination of ld and as)
- References: <20050602112222.GE30701@bubble.grove.modra.org>
* 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.