This is the mail archive of the gcc-bugs@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]

Re: 2.95,2 bug; can not create cross compiler


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.


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