This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Use target_alias instead of target for target_subdir
- To: gcc-patches at gcc dot gnu dot org
- Subject: Use target_alias instead of target for target_subdir
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 08 Mar 2001 03:43:31 -0300
- Organization: GCC Team, Red Hat
When playing with ppc-eabi, I noticed GCC would use the canonical
target triplet in target_subdir, instead of the one specified by the
user. target_subdir is only used to set up some variables in site.exp
that point into the top-level $(TARGET_SUBDIR). However, in the top
level, TARGET_SUBDIR is set from target_alias.
This patch fixes this inconsistency. If nobody protests in the next
few days, I'm going to check this in HEAD and branch.
Index: gcc/ChangeLog
from Alexandre Oliva <aoliva@redhat.com>
* configure.in (target_subdir): Use target_alias, not target.
* configure: Rebuilt.
Index: gcc/configure.in
===================================================================
RCS file: /cvs/gcc/egcs/gcc/configure.in,v
retrieving revision 1.486
diff -u -p -r1.486 configure.in
--- gcc/configure.in 2001/02/16 11:12:45 1.486
+++ gcc/configure.in 2001/02/20 11:23:38
@@ -1729,7 +1743,7 @@ build_canonical=${build}
host_canonical=${host}
target_subdir=
if test "${host}" != "${target}" ; then
- target_subdir=${target}/
+ target_subdir=${target_alias}/
fi
AC_SUBST(build_canonical)
AC_SUBST(host_canonical)
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me