This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: 2.95,2 bug; can not create cross compiler
- To: Alexandre Oliva <oliva at lsd dot ic dot unicamp dot br>
- Subject: Re: 2.95,2 bug; can not create cross compiler
- From: "H . J . Lu" <hjl at lucon dot org>
- Date: Thu, 18 Nov 1999 11:59:23 -0800
- Cc: Joe Buck <jbuck at synopsys dot COM>,Gerald Pfeifer <pfeifer at dbai dot tuwien dot ac dot at>, mrs at windriver dot com,gcc-bugs at gcc dot gnu dot org, gcc at gcc dot gnu dot org, schweitz at nortelnetworks dot com
- References: <19991118161014.828241B493@ocean.lucon.org> <ork8nffuu0.fsf@garnize.lsd.ic.unicamp.br>
On Thu, Nov 18, 1999 at 05:44:39PM -0200, Alexandre Oliva wrote:
> On Nov 18, 1999, hjl@lucon.org (H.J. Lu) wrote:
>
> > +if [ x${target} != x${build} -a x${build} = x${host} ]; then
>
> If this is to be included in gcc, do not use [ ... -a ... ], it is not
> portable. Use [ ... ] && [ ... ] instead. Also, some quoting to
> avoid potential whitespace problems wouldn't be a bad idea.
>
Thanks. I updated my tree. I am enclosing it here.
It is for my personal use only. But you have my permission to do
whatever you want.
H.J.
--
--- configure.orig Thu Nov 18 11:52:48 1999
+++ configure Thu Nov 18 11:55:05 1999
@@ -752,6 +752,17 @@ target_vendor=`echo $result | sed 's/^\(
target_os=`echo $result | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
target=${target_cpu}-${target_vendor}-${target_os}
+if [ x"${target}" != x"${build}" ] && [ x"${build}" = x"${host}" ]; then
+ if [ ! -d ${prefix}/lib/gcc-lib/${target_alias}/${gcc_version} ]; then
+ echo "Please create the directory:" 1>&2
+ echo 1>&2
+ echo " ${prefix}/lib/gcc-lib/${target_alias}/${gcc_version}" 1>&2
+ echo 1>&2
+ echo "first for successful cross-compilaition." 1>&2
+ exit 1
+ fi
+fi
+
. ${tmpfile}.tgt
# Find the source files, if location was not specified.